Using focus_visible_window
with >= 3 windows cause faulty behaviour of all other key input
#7102
Labels
focus_visible_window
with >= 3 windows cause faulty behaviour of all other key input
#7102
Describe the bug (Symptoms)
On
kitty 0.32.1 (08d88af2fb)
, using commandfocus_visible_window
with >= 3 windows will cause faulty behaviour of all other key inputs.From logs, the issue seems to be related to "keyboard mode", if that means anything.
Issue rating
set_tab_title
To Reproduce
Steps to reproduce the behavior:
--debug-keyboard
--debug-keyboard
, should see:super+t
logs (click to show)
``` -------------- flags changed ----------------- NSEvent: type=FlagsChanged loc=(371.379,200.387) time=21448.3 flags=0x100108 win=0x7f8ef9e1dc30 winNum=8816 ctxt=0x0 keyCode=55 flagsChanged: modifier: super native_key: 0x37 () glfw_key: 0xe064 mods: super on_key_input: glfw key: 0xe064 native_code: 0x37 action: PRESS mods: super text: '' state: 0 ignoring as keyboard mode does not support encoding this event ---------------- key down ------------------- NSEvent: type=KeyDown loc=(371.379,200.387) time=21448.5 flags=0x100108 win=0x7f8ef9e1dc30 winNum=8816 ctxt=0x0 chars="t" unmodchars="t" repeat=0 keyCode=17 keyDown triggered global menu bar action ignoring ----------------- key up -------------------- NSEvent: type=KeyUp loc=(371.379,200.387) time=21448.6 flags=0x100108 win=0x7f8ef9e1dc30 winNum=8816 ctxt=0x0 chars="t" unmodchars="t" repeat=0 keyCode=17 keyUp ignored as corresponds to previous keyDown that triggered a shortcut ```a
s
aftersuper+shift+i
logs (click to show)
``` ---------------- key down ------------------- NSEvent: type=KeyDown loc=(905.048,405.422) time=22229.9 flags=0x100 win=0x7f9883896250 winNum=9165 ctxt=0x0 chars="a" unmodchars="a" repeat=0 keyCode=0 Press: native_key: 0x0 (a) glfw_key: 0x61 mods: none char_count: 1 deadKeyState: 0 repeat: 0 insertText: a replacementRange: (9223372036854775807, 0) text: 0x61 glfw_key: a marked_text: () on_key_input: glfw key: 0x61 native_code: 0x0 action: PRESS mods: none text: 'a' state: 0 sent encoded key to child: ^[ [ 9 7 ; ; 9 7 u ----------------- key up -------------------- NSEvent: type=KeyUp loc=(905.048,405.422) time=22230.0 flags=0x100 win=0x7f9883896250 winNum=9165 ctxt=0x0 chars="a" unmodchars="a" repeat=0 keyCode=0 Release: native_key: 0x0 (a) glfw_key: 0x61 mods: none on_key_input: glfw key: 0x61 native_code: 0x0 action: RELEASE mods: none text: '' state: 0 ignoring as keyboard mode does not support encoding this event ---------------- key down ------------------- NSEvent: type=KeyDown loc=(905.048,405.422) time=22230.1 flags=0x100 win=0x7f9883896250 winNum=9165 ctxt=0x0 chars="s" unmodchars="s" repeat=0 keyCode=1 Press: native_key: 0x1 (s) glfw_key: 0x73 mods: none char_count: 1 deadKeyState: 0 repeat: 0 insertText: s replacementRange: (9223372036854775807, 0) text: 0x73 glfw_key: s marked_text: () on_key_input: glfw key: 0x73 native_code: 0x1 action: PRESS mods: none text: 's' state: 0 sent encoded key to child: ^[ [ 1 1 5 ; ; 1 1 5 u ----------------- key up -------------------- NSEvent: type=KeyUp loc=(905.048,405.422) time=22230.2 flags=0x100 win=0x7f9883896250 winNum=9165 ctxt=0x0 chars="s" unmodchars="s" repeat=0 keyCode=1 Release: native_key: 0x1 (s) glfw_key: 0x73 mods: none on_key_input: glfw key: 0x73 native_code: 0x1 action: RELEASE mods: none text: '' state: 0 ignoring as keyboard mode does not support encoding this event ---------------- key down ------------------- NSEvent: type=KeyDown loc=(905.048,405.422) time=22230.3 flags=0x100 win=0x7f9883896250 winNum=9165 ctxt=0x0 chars="d" unmodchars="d" repeat=0 keyCode=2 Press: native_key: 0x2 (d) glfw_key: 0x64 mods: none char_count: 1 deadKeyState: 0 repeat: 0 insertText: d replacementRange: (9223372036854775807, 0) text: 0x64 glfw_key: d marked_text: () on_key_input: glfw key: 0x64 native_code: 0x2 action: PRESS mods: none text: 'd' state: 0 sent encoded key to child: ^[ [ 1 0 0 ; ; 1 0 0 u ```focus_visible_window
ctrl+shift+f7
set_tab_title
can be started but won't respond to keys.--debug-keyboard
, should see:super+t
logs (click to show)
``` -------------- flags changed ----------------- NSEvent: type=FlagsChanged loc=(371.379,200.387) time=21458.1 flags=0x100108 win=0x7f8ef9e1dc30 winNum=8816 ctxt=0x0 keyCode=55 flagsChanged: modifier: super native_key: 0x37 () glfw_key: 0xe064 mods: super on_key_input: glfw key: 0xe064 native_code: 0x37 action: PRESS mods: super text: '' state: 0 ignoring as keyboard mode does not support encoding this event ---------------- key down ------------------- NSEvent: type=KeyDown loc=(371.379,200.387) time=21458.2 flags=0x100108 win=0x7f8ef9e1dc30 winNum=8816 ctxt=0x0 chars="t" unmodchars="t" repeat=0 keyCode=17 Press: native_key: 0x11 (t) glfw_key: 0x74 mods: super char_count: 1 deadKeyState: 0 repeat: 0 text: glfw_key: t marked_text: () on_key_input: glfw key: 0x74 native_code: 0x11 action: PRESS mods: super text: '' state: 0 handled as shortcut ----------------- key up -------------------- NSEvent: type=KeyUp loc=(371.379,200.387) time=21458.3 flags=0x100108 win=0x7f8ef9e1dc30 winNum=8816 ctxt=0x0 chars="t" unmodchars="t" repeat=0 keyCode=17 Release: native_key: 0x11 (t) glfw_key: 0x74 mods: super on_key_input: glfw key: 0x74 native_code: 0x11 action: RELEASE mods: super text: '' state: 0 ignoring release event for previous press that was handled as shortcut ```a
s
aftersuper+shift+i
logs (click to show)
``` ---------------- key down ------------------- NSEvent: type=KeyDown loc=(905.048,405.422) time=22243.2 flags=0x100 win=0x7f9883896250 winNum=9165 ctxt=0x0 chars="a" unmodchars="a" repeat=0 keyCode=0 Press: native_key: 0x0 (a) glfw_key: 0x61 mods: none char_count: 1 deadKeyState: 0 repeat: 0 text: glfw_key: a marked_text: () on_key_input: glfw key: 0x61 native_code: 0x0 action: PRESS mods: none text: '' state: 0 sent encoded key to child: ^[ [ 9 7 u ----------------- key up -------------------- NSEvent: type=KeyUp loc=(905.048,405.422) time=22243.4 flags=0x100 win=0x7f9883896250 winNum=9165 ctxt=0x0 chars="a" unmodchars="a" repeat=0 keyCode=0 Release: native_key: 0x0 (a) glfw_key: 0x61 mods: none on_key_input: glfw key: 0x61 native_code: 0x0 action: RELEASE mods: none text: '' state: 0 ignoring as keyboard mode does not support encoding this event ---------------- key down ------------------- NSEvent: type=KeyDown loc=(905.048,405.422) time=22243.5 flags=0x100 win=0x7f9883896250 winNum=9165 ctxt=0x0 chars="s" unmodchars="s" repeat=0 keyCode=1 Press: native_key: 0x1 (s) glfw_key: 0x73 mods: none char_count: 1 deadKeyState: 0 repeat: 0 text: glfw_key: s marked_text: () on_key_input: glfw key: 0x73 native_code: 0x1 action: PRESS mods: none text: '' state: 0 sent encoded key to child: ^[ [ 1 1 5 u ----------------- key up -------------------- NSEvent: type=KeyUp loc=(905.048,405.422) time=22243.6 flags=0x100 win=0x7f9883896250 winNum=9165 ctxt=0x0 chars="s" unmodchars="s" repeat=0 keyCode=1 Release: native_key: 0x1 (s) glfw_key: 0x73 mods: none on_key_input: glfw key: 0x73 native_code: 0x1 action: RELEASE mods: none text: '' state: 0 ignoring as keyboard mode does not support encoding this event ```ENTIRE LOG of `kitty --debug-keyboard` (click to show)
Screenshots
none.
Environment details
Since the bug is reproducible with
kitty --config NONE
(typea
s
aftersuper+shift+i
), I am not including other informations here.Additional context
Bug is reproducible with
kitty --config NONE
(typea
s
aftersuper+shift+i
).From logs, it is also possible to be caused by recent commit related to macos menu bar action (#6680)
The text was updated successfully, but these errors were encountered: