mirror of
https://github.com/alacritty/alacritty.git
synced 2024-11-18 13:55:23 -05:00
Merge pull request #159 from jwilm/fix-intl-input
Fix issue with some international inputs
This commit is contained in:
commit
c6959de11b
1 changed files with 9 additions and 8 deletions
17
src/input.rs
17
src/input.rs
|
@ -363,16 +363,17 @@ impl<'a, N: Notify + 'a> Processor<'a, N> {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Didn't process a binding; print the provided character
|
}
|
||||||
if let Some(mut string) = string {
|
|
||||||
// from ST
|
|
||||||
if string.len() == 1 && mods.contains(mods::ALT) {
|
|
||||||
string.insert(0, '\x1b');
|
|
||||||
}
|
|
||||||
|
|
||||||
self.ctx.notifier.notify(string.into_bytes());
|
// Didn't process a binding; print the provided character
|
||||||
self.ctx.selection.clear();
|
if let Some(mut string) = string {
|
||||||
|
// from ST
|
||||||
|
if string.len() == 1 && mods.contains(mods::ALT) {
|
||||||
|
string.insert(0, '\x1b');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
self.ctx.notifier.notify(string.into_bytes());
|
||||||
|
self.ctx.selection.clear();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue