diff options
author | Kirill Chibisov <contact@kchibisov.com> | 2024-03-24 19:07:20 +0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-24 19:07:20 +0400 |
commit | a3be505f24c8412504468daf8d375a9ad81adbc1 (patch) | |
tree | e9011e9b4354659951bd3247746e4a7a2e00eb4e /alacritty/src/input/keyboard.rs | |
parent | cef95324c9e2572a50e2d2334cbe2ba3641a12a8 (diff) | |
download | r-alacritty-a3be505f24c8412504468daf8d375a9ad81adbc1.tar.gz r-alacritty-a3be505f24c8412504468daf8d375a9ad81adbc1.tar.bz2 r-alacritty-a3be505f24c8412504468daf8d375a9ad81adbc1.zip |
Send ESC with Alt for unicode input
Make `Alt` send `ESC` for unicode input the way it's done for ASCII.
Previously it was disabled because of macOS, however on macOS we're
using the `option_as_alt` setting, which solves the original issue.
The `Alt` prefixing is still disabled for the unicode strings, like
when they come from the compose input.
Fixes #7852.
Diffstat (limited to 'alacritty/src/input/keyboard.rs')
-rw-r--r-- | alacritty/src/input/keyboard.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/alacritty/src/input/keyboard.rs b/alacritty/src/input/keyboard.rs index afb23eb5..b4c35741 100644 --- a/alacritty/src/input/keyboard.rs +++ b/alacritty/src/input/keyboard.rs @@ -126,7 +126,7 @@ impl<T: EventListener, A: ActionContext<T>> Processor<T, A> { self.ctx.modifiers().state().alt_key() } }, - _ => text.len() == 1 && alt_send_esc, + _ => alt_send_esc && text.chars().count() == 1, } } |