window: fix CTRL-[ on macos
This is another key combination that doesn't generate a key-down event. refs: https://github.com/wez/wezterm/issues/1877
This commit is contained in:
1 parent
fdb3471017
commit
a4b68247bb
1 file changed
+4
-1
@@ -1997,7 +1997,10 @@ impl WindowView {
|
||||
// CTRL-Tab only delivers a key-up event, and never a
|
||||
// key-down event. So we just pretend that key-up is
|
||||
// key-down.
|
||||
let key_is_down = if virtual_key == super::keycodes::kVK_Tab
|
||||
// Same for CTRL-[
|
||||
// <https://github.com/wez/wezterm/issues/1877>
|
||||
let key_is_down = if (virtual_key == super::keycodes::kVK_Tab
|
||||
|| virtual_key == super::keycodes::kVK_ANSI_LeftBracket)
|
||||
&& modifiers.contains(Modifiers::CTRL)
|
||||
&& !key_is_down
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user