diff options
author | dakkar <dakkar@thenautilus.net> | 2024-07-06 14:42:35 +0100 |
---|---|---|
committer | dakkar <dakkar@thenautilus.net> | 2024-07-06 14:42:35 +0100 |
commit | 4542e9c14a8a4fbad4369d8f0d15476680ba15b9 (patch) | |
tree | e9a3c1c5ad4ee4b19e46dfda35182cd7c7f1267b /x11-terms | |
parent | limit alacritty meta patch (diff) | |
download | portage-patches-4542e9c14a8a4fbad4369d8f0d15476680ba15b9.tar.gz portage-patches-4542e9c14a8a4fbad4369d8f0d15476680ba15b9.tar.bz2 portage-patches-4542e9c14a8a4fbad4369d8f0d15476680ba15b9.zip |
alacritty 0.13 patch
Diffstat (limited to 'x11-terms')
-rw-r--r-- | x11-terms/alacritty-0.13.2/meta-send-esc.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/x11-terms/alacritty-0.13.2/meta-send-esc.patch b/x11-terms/alacritty-0.13.2/meta-send-esc.patch new file mode 100644 index 0000000..7be7e8e --- /dev/null +++ b/x11-terms/alacritty-0.13.2/meta-send-esc.patch @@ -0,0 +1,31 @@ +diff --git i/alacritty/src/input/keyboard.rs w/alacritty/src/input/keyboard.rs +index afb23eb5..0ad4f050 100644 +--- i/alacritty/src/input/keyboard.rs ++++ w/alacritty/src/input/keyboard.rs +@@ -87,7 +87,7 @@ impl<T: EventListener, A: ActionContext<T>> Processor<T, A> { + build_sequence(key, mods, mode) + } else { + let mut bytes = Vec::with_capacity(text.len() + 1); +- if mods.alt_key() { ++ if mods.alt_key() || mods.super_key() { + bytes.push(b'\x1b'); + } + +@@ -104,7 +104,7 @@ impl<T: EventListener, A: ActionContext<T>> Processor<T, A> { + + fn alt_send_esc(&mut self, key: &KeyEvent, text: &str) -> bool { + #[cfg(not(target_os = "macos"))] +- let alt_send_esc = self.ctx.modifiers().state().alt_key(); ++ let alt_send_esc = self.ctx.modifiers().state().alt_key() || self.ctx.modifiers().state().super_key(); + + #[cfg(target_os = "macos")] + let alt_send_esc = { +@@ -123,7 +123,7 @@ impl<T: EventListener, A: ActionContext<T>> Processor<T, A> { + alt_send_esc + } else { + // Treat `Alt` as modifier for named keys without text, like ArrowUp. +- self.ctx.modifiers().state().alt_key() ++ self.ctx.modifiers().state().alt_key() || self.ctx.modifiers().state().super_key() + } + }, + _ => text.len() == 1 && alt_send_esc, |