diff options
author | dakkar <dakkar@thenautilus.net> | 2025-01-17 12:58:05 +0000 |
---|---|---|
committer | dakkar <dakkar@thenautilus.net> | 2025-01-17 12:58:10 +0000 |
commit | 54d173dc0fbb5cbf0a8dcfedb2218ae388a8af61 (patch) | |
tree | 36c574b6b0b7aaf0af0b715b2a5d6cb968c4cb51 | |
parent | make privoxy socks4 work on recent glibc (diff) | |
download | portage-patches-54d173dc0fbb5cbf0a8dcfedb2218ae388a8af61.tar.gz portage-patches-54d173dc0fbb5cbf0a8dcfedb2218ae388a8af61.tar.bz2 portage-patches-54d173dc0fbb5cbf0a8dcfedb2218ae388a8af61.zip |
-rw-r--r-- | x11-terms/alacritty-0.14.0-r1/meta-send-esc.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/x11-terms/alacritty-0.14.0-r1/meta-send-esc.patch b/x11-terms/alacritty-0.14.0-r1/meta-send-esc.patch new file mode 100644 index 0000000..9267d2e --- /dev/null +++ b/x11-terms/alacritty-0.14.0-r1/meta-send-esc.patch @@ -0,0 +1,31 @@ +diff --git i/alacritty/src/input/keyboard.rs w/alacritty/src/input/keyboard.rs +index 1475559..3dab761 100644 +--- i/alacritty/src/input/keyboard.rs ++++ w/alacritty/src/input/keyboard.rs +@@ -82,7 +82,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'); + } + +@@ -99,7 +99,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 = { +@@ -118,7 +118,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() + } + }, + _ => alt_send_esc && text.chars().count() == 1, |