From 92d7d9ca196e3ca075f3f612cff5005c9ec3506f Mon Sep 17 00:00:00 2001 From: Kirill Chibisov Date: Sun, 24 Mar 2024 19:07:20 +0400 Subject: 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. --- alacritty/src/input/keyboard.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'alacritty/src') diff --git a/alacritty/src/input/keyboard.rs b/alacritty/src/input/keyboard.rs index 9aabba09..9c7ef4bd 100644 --- a/alacritty/src/input/keyboard.rs +++ b/alacritty/src/input/keyboard.rs @@ -126,7 +126,7 @@ impl> Processor { self.ctx.modifiers().state().alt_key() } }, - _ => alt_send_esc, + _ => alt_send_esc && text.chars().count() == 1, } } -- cgit