1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-22 22:42:48 +03:00

macos: more weirdness with alt/shift/bracket

It looks like we don't need to special case left/right bracket any more;
tested with both Italian (right-alt-shift-leftbracket) and Norwegian
(right-alt-shift-9), and confirmed that right-alt-shift-grave does
produce alt-tilde.

refs: https://github.com/wez/wezterm/issues/1901
refs: https://github.com/wez/wezterm/issues/1706
refs: https://github.com/wez/wezterm/issues/760
This commit is contained in:
Wez Furlong 2022-04-21 07:32:49 -07:00
parent 2839293674
commit 453381251c

View File

@ -2252,9 +2252,7 @@ impl WindowView {
&& !unmod.is_empty()
&& modifiers.contains(Modifiers::SHIFT)
&& modifiers.contains(Modifiers::ALT)
&& (virtual_key == super::keycodes::kVK_ANSI_Grave
|| virtual_key == super::keycodes::kVK_ANSI_LeftBracket
|| virtual_key == super::keycodes::kVK_ANSI_RightBracket)
&& virtual_key == super::keycodes::kVK_ANSI_Grave
{
// When both shift and alt are pressed, macos appears to swap `chars` with `unmod`,
// which isn't particularly helpful. eg: ALT+SHIFT+` produces chars='`' and unmod='~'