Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using focus_visible_window with >= 3 windows cause faulty behaviour of all other key input #7102

Closed
ed9w2in6 opened this issue Feb 6, 2024 · 2 comments
Labels

Comments

@ed9w2in6
Copy link

ed9w2in6 commented Feb 6, 2024

Describe the bug (Symptoms)
On kitty 0.32.1 (08d88af2fb), using command focus_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

  • Reproducibility: always (always/sometimes)
  • Impact: breaking (breaking/non-breaking)
    • no work around for set_tab_title
  • Size: specific features (entire app/specific features)

To Reproduce

The entire log generated by kitty --debug-keyboard is included at the end of this section.

Steps to reproduce the behavior:

  1. Start kitty
    • optionally, with --debug-keyboard
  2. Try using kitty keybinds normally
    • optionally, observe logs of --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 ```
  • type a s after super+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 ```
  1. Press whatever keybind that triggers focus_visible_window
    • Default is ctrl+shift+f7
  2. Try 2. again, some command should not work properlly
    • e.g. set_tab_title can be started but won't respond to keys.
    • e.g. custom keybinds will not work
    • optionally, observe logs of --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 ```
  • type a s after super+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)

$ echo; kitty --debug-keyboard

[037 17:30:50.805753] Ignoring unknown config key: resize_draw_strategy
[037 17:30:50.807023] Invalid shell integration options: frozenset({'disable'}), ignoring
on_focus_change: window id: 0x1 focused: 1
Move x: 1810.1 y: 789.2 grabbed: 0
[037 17:30:52.124725] WARNING: Your system's OpenGL implementation does not have glCopyImageSubData, falling back to a slower implementation
-------------- flags changed -----------------
NSEvent: type=FlagsChanged loc=(905.048,405.422) time=22228.0 flags=0x100108 win=0x7f9883896250 winNum=9165 ctxt=0x0 keyCode=55
flagsChanged: modifier: super native_key: 0x37 (<noname>) 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
-------------- flags changed -----------------
NSEvent: type=FlagsChanged loc=(905.048,405.422) time=22228.1 flags=0x12010a win=0x7f9883896250 winNum=9165 ctxt=0x0 keyCode=56
flagsChanged: modifier: shift native_key: 0x38 (<noname>) glfw_key: 0xe061 mods: shift+super 
on_key_input: glfw key: 0xe061 native_code: 0x38 action: PRESS mods: shift+super text: '' state: 0 ignoring as keyboard mode does not support encoding this event
---------------- key down -------------------
NSEvent: type=KeyDown loc=(905.048,405.422) time=22228.1 flags=0x12010a win=0x7f9883896250 winNum=9165 ctxt=0x0 chars="i" unmodchars="I" repeat=0 keyCode=34
Press: native_key: 0x22 (i) glfw_key: 0x69 mods: shift+super char_count: 1 deadKeyState: 0 repeat: 0 2024-02-06 17:30:55.300 kitty[25319:259873] TSM AdjustCapsLock
LEDForKeyTransitionHandling - _ISSetPhysicalKeyboardCapsLockLED Inhibit

	TextInputCtx: doCommandBySelector: (noop:)
text: <none> glfw_key: i marked_text: ()
on_key_input: glfw key: 0x69 native_code: 0x22 action: PRESS mods: shift+super text: '' state: 0 
KeyPress matched action: set_tab_title, handled as shortcut
Pushed key encoding flags to: 29
-------------- flags changed -----------------
NSEvent: type=FlagsChanged loc=(905.048,405.422) time=22228.2 flags=0x20102 win=0x7f9883896250 winNum=9165 ctxt=0x0 keyCode=55
flagsChanged: modifier: super native_key: 0x37 (<noname>) glfw_key: 0xe064 mods: shift 
on_key_input: glfw key: 0xe064 native_code: 0x37 action: RELEASE mods: shift text: '' state: 0 ignoring as keyboard mode does not support encoding this event
----------------- key up --------------------
NSEvent: type=KeyUp loc=(905.048,405.422) time=22228.2 flags=0x20102 win=0x7f9883896250 winNum=9165 ctxt=0x0 chars="I" unmodchars="I" repeat=0 keyCode=34
Release: native_key: 0x22 (i) glfw_key: 0x69 mods: shift 
on_key_input: glfw key: 0x69 native_code: 0x22 action: RELEASE mods: shift text: '' state: 0 ignoring as keyboard mode does not support encoding this event
-------------- flags changed -----------------
NSEvent: type=FlagsChanged loc=(905.048,405.422) time=22228.2 flags=0x100 win=0x7f9883896250 winNum=9165 ctxt=0x0 keyCode=56
flagsChanged: modifier: shift native_key: 0x38 (<noname>) glfw_key: 0xe061 mods: none 
on_key_input: glfw key: 0xe061 native_code: 0x38 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=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 
----------------- key up --------------------
NSEvent: type=KeyUp loc=(905.048,405.422) time=22230.4 flags=0x100 win=0x7f9883896250 winNum=9165 ctxt=0x0 chars="d" unmodchars="d" repeat=0 keyCode=2
Release: native_key: 0x2 (d) glfw_key: 0x64 mods: none 
on_key_input: glfw key: 0x64 native_code: 0x2 action: RELEASE mods: none text: '' state: 0 ignoring as keyboard mode does not support encoding this event
-------------- flags changed -----------------
NSEvent: type=FlagsChanged loc=(905.048,405.422) time=22231.2 flags=0x40101 win=0x7f9883896250 winNum=9165 ctxt=0x0 keyCode=59
flagsChanged: modifier: ctrl native_key: 0x3b (<noname>) glfw_key: 0xe062 mods: ctrl 
on_key_input: glfw key: 0xe062 native_code: 0x3b action: PRESS mods: ctrl text: '' state: 0 sent encoded key to child: ^[ [ 5 7 4 4 2 ; 5 u 
---------------- key down -------------------
NSEvent: type=KeyDown loc=(905.048,405.422) time=22231.3 flags=0x40101 win=0x7f9883896250 winNum=9165 ctxt=0x0 chars="" unmodchars="d" repeat=0 keyCode=2
Press: native_key: 0x2 (d) glfw_key: 0x64 mods: ctrl char_count: 1 deadKeyState: 0 repeat: 0 
	TextInputCtx: doCommandBySelector: (deleteForward:)
text: <none> glfw_key: d marked_text: ()
on_key_input: glfw key: 0x64 native_code: 0x2 action: PRESS mods: ctrl text: '' state: 0 sent encoded key to child: ^[ [ 1 0 0 ; 5 u 
Popped key encoding flags to: 0
----------------- key up --------------------
NSEvent: type=KeyUp loc=(905.048,405.422) time=22231.4 flags=0x40101 win=0x7f9883896250 winNum=9165 ctxt=0x0 chars="" unmodchars="d" repeat=0 keyCode=2
Release: native_key: 0x2 (d) glfw_key: 0x64 mods: ctrl 
on_key_input: glfw key: 0x64 native_code: 0x2 action: RELEASE mods: ctrl text: '' state: 0 ignoring as keyboard mode does not support encoding this event
-------------- flags changed -----------------
NSEvent: type=FlagsChanged loc=(905.048,405.422) time=22231.4 flags=0x100 win=0x7f9883896250 winNum=9165 ctxt=0x0 keyCode=59
flagsChanged: modifier: ctrl native_key: 0x3b (<noname>) glfw_key: 0xe062 mods: none 
on_key_input: glfw key: 0xe062 native_code: 0x3b action: RELEASE mods: none text: '' state: 0 ignoring as keyboard mode does not support encoding this event
-------------- flags changed -----------------
NSEvent: type=FlagsChanged loc=(905.048,405.422) time=22236.1 flags=0x100108 win=0x7f9883896250 winNum=9165 ctxt=0x0 keyCode=55
flagsChanged: modifier: super native_key: 0x37 (<noname>) 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=(905.048,405.422) time=22236.3 flags=0x100108 win=0x7f9883896250 winNum=9165 ctxt=0x0 chars="t" unmodchars="t" repeat=0 keyCode=17
keyDown triggered global menu bar action ignoring
----------------- key up --------------------
NSEvent: type=KeyUp loc=(905.048,405.422) time=22236.4 flags=0x100108 win=0x7f9883896250 winNum=9165 ctxt=0x0 chars="t" unmodchars="t" repeat=0 keyCode=17
keyUp ignored as corresponds to previous keyDown that triggered a shortcut
---------------- key down -------------------
NSEvent: type=KeyDown loc=(905.048,405.422) time=22236.5 flags=0x100108 win=0x7f9883896250 winNum=9165 ctxt=0x0 chars="t" unmodchars="t" repeat=0 keyCode=17
keyDown triggered global menu bar action ignoring
----------------- key up --------------------
NSEvent: type=KeyUp loc=(905.048,405.422) time=22236.6 flags=0x100108 win=0x7f9883896250 winNum=9165 ctxt=0x0 chars="t" unmodchars="t" repeat=0 keyCode=17
keyUp ignored as corresponds to previous keyDown that triggered a shortcut
-------------- flags changed -----------------
NSEvent: type=FlagsChanged loc=(905.048,405.422) time=22236.6 flags=0x100 win=0x7f9883896250 winNum=9165 ctxt=0x0 keyCode=55
flagsChanged: modifier: super native_key: 0x37 (<noname>) glfw_key: 0xe064 mods: none 
on_key_input: glfw key: 0xe064 native_code: 0x37 action: RELEASE mods: none text: '' state: 0 ignoring as keyboard mode does not support encoding this event
-------------- flags changed -----------------
NSEvent: type=FlagsChanged loc=(905.048,405.422) time=22239.2 flags=0x100108 win=0x7f9883896250 winNum=9165 ctxt=0x0 keyCode=55
flagsChanged: modifier: super native_key: 0x37 (<noname>) 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=(905.048,405.422) time=22239.4 flags=0x100108 win=0x7f9" repeat=0 keyCode=36 ctxt=0x0 chars="
Press: native_key: 0x24 (<cc>) glfw_key: 0xe001 mods: super char_count: 1 deadKeyState: 0 repeat: 0 
	TextInputCtx: doCommandBySelector: (noop:)
text: <none> glfw_key: ENTER marked_text: ()
on_key_input: glfw key: 0xe001 native_code: 0x24 action: PRESS mods: super text: '' state: 0 
KeyPress matched action: launch, handled as shortcut
----------------- key up --------------------
NSEvent: type=KeyUp loc=(905.048,405.422) time=22239.4 flags=0x100108 win=0x7f988" repeat=0 keyCode=36txt=0x0 chars="
Release: native_key: 0x24 (<cc>) glfw_key: 0xe001 mods: super 
on_key_input: glfw key: 0xe001 native_code: 0x24 action: RELEASE mods: super text: '' state: 0 ignoring as keyboard mode does not support encoding this event
---------------- key down -------------------
NSEvent: type=KeyDown loc=(905.048,405.422) time=22239.5 flags=0x100108 win=0x7f9" repeat=0 keyCode=36 ctxt=0x0 chars="
Press: native_key: 0x24 (<cc>) glfw_key: 0xe001 mods: super char_count: 1 deadKeyState: 0 repeat: 0 
	TextInputCtx: doCommandBySelector: (noop:)
text: <none> glfw_key: ENTER marked_text: ()
on_key_input: glfw key: 0xe001 native_code: 0x24 action: PRESS mods: super text: '' state: 0 
KeyPress matched action: launch, handled as shortcut
----------------- key up --------------------
NSEvent: type=KeyUp loc=(905.048,405.422) time=22239.6 flags=0x100108 win=0x7f988" repeat=0 keyCode=36txt=0x0 chars="
Release: native_key: 0x24 (<cc>) glfw_key: 0xe001 mods: super 
on_key_input: glfw key: 0xe001 native_code: 0x24 action: RELEASE mods: super text: '' state: 0 ignoring as keyboard mode does not support encoding this event
-------------- flags changed -----------------
NSEvent: type=FlagsChanged loc=(905.048,405.422) time=22239.7 flags=0x100 win=0x7f9883896250 winNum=9165 ctxt=0x0 keyCode=55
flagsChanged: modifier: super native_key: 0x37 (<noname>) glfw_key: 0xe064 mods: none 
on_key_input: glfw key: 0xe064 native_code: 0x37 action: RELEASE mods: none text: '' state: 0 ignoring as keyboard mode does not support encoding this event
-------------- flags changed -----------------
NSEvent: type=FlagsChanged loc=(905.048,405.422) time=22240.3 flags=0x100108 win=0x7f9883896250 winNum=9165 ctxt=0x0 keyCode=55
flagsChanged: modifier: super native_key: 0x37 (<noname>) 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=(905.048,405.422) time=22240.4 flags=0x100108 win=0x7f9883896250 winNum=9165 ctxt=0x0 chars="o" unmodchars="o" repeat=0 keyCode=31
Press: native_key: 0x1f (o) glfw_key: 0x6f mods: super char_count: 1 deadKeyState: 0 repeat: 0 
	TextInputCtx: doCommandBySelector: (noop:)
text: <none> glfw_key: o marked_text: ()
on_key_input: glfw key: 0x6f native_code: 0x1f action: PRESS mods: super text: '' state: 0 
KeyPress matched action: focus_visible_window, handled as shortcut
----------------- key up --------------------
NSEvent: type=KeyUp loc=(905.048,405.422) time=22240.5 flags=0x100108 win=0x7f9883896250 winNum=9165 ctxt=0x0 chars="o" unmodchars="o" repeat=0 keyCode=31
Release: native_key: 0x1f (o) glfw_key: 0x6f mods: super 
on_key_input: glfw key: 0x6f native_code: 0x1f action: RELEASE mods: super text: '' state: 0 ignoring release event for previous press that was handled as shortcut
-------------- flags changed -----------------
NSEvent: type=FlagsChanged loc=(905.048,405.422) time=22240.5 flags=0x100 win=0x7f9883896250 winNum=9165 ctxt=0x0 keyCode=55
flagsChanged: modifier: super native_key: 0x37 (<noname>) glfw_key: 0xe064 mods: none 
on_key_input: glfw key: 0xe064 native_code: 0x37 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=22240.9 flags=0x100 win=0x7f9883896250 winNum=9165 ctxt=0x0 chars="[" unmodchars="[" repeat=0 keyCode=33
Press: native_key: 0x21 ([) glfw_key: 0x5b mods: none char_count: 1 deadKeyState: 0 repeat: 0 text: <none> glfw_key: [ marked_text: ()
on_key_input: glfw key: 0x5b native_code: 0x21 action: PRESS mods: none text: '' state: 0 
KeyPress matched action: visual_window_select_action_trigger, handled as shortcut
----------------- key up --------------------
NSEvent: type=KeyUp loc=(905.048,405.422) time=22240.9 flags=0x100 win=0x7f9883896250 winNum=9165 ctxt=0x0 chars="[" unmodchars="[" repeat=0 keyCode=33
Release: native_key: 0x21 ([) glfw_key: 0x5b mods: none 
on_key_input: glfw key: 0x5b native_code: 0x21 action: RELEASE mods: none text: '' state: 0 ignoring as keyboard mode does not support encoding this event
-------------- flags changed -----------------
NSEvent: type=FlagsChanged loc=(905.048,405.422) time=22242.5 flags=0x100108 win=0x7f9883896250 winNum=9165 ctxt=0x0 keyCode=55
flagsChanged: modifier: super native_key: 0x37 (<noname>) 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
-------------- flags changed -----------------
NSEvent: type=FlagsChanged loc=(905.048,405.422) time=22242.6 flags=0x12010a win=0x7f9883896250 winNum=9165 ctxt=0x0 keyCode=56
flagsChanged: modifier: shift native_key: 0x38 (<noname>) glfw_key: 0xe061 mods: shift+super 
on_key_input: glfw key: 0xe061 native_code: 0x38 action: PRESS mods: shift+super text: '' state: 0 ignoring as keyboard mode does not support encoding this event
---------------- key down -------------------
NSEvent: type=KeyDown loc=(905.048,405.422) time=22242.7 flags=0x12010a win=0x7f9883896250 winNum=9165 ctxt=0x0 chars="i" unmodchars="I" repeat=0 keyCode=34
Press: native_key: 0x22 (i) glfw_key: 0x69 mods: shift+super char_count: 1 deadKeyState: 0 repeat: 0 text: <none> glfw_key: i marked_text: ()
on_key_input: glfw key: 0x69 native_code: 0x22 action: PRESS mods: shift+super text: '' state: 0 
KeyPress matched action: set_tab_title, handled as shortcut
Pushed key encoding flags to: 29
----------------- key up --------------------
NSEvent: type=KeyUp loc=(905.048,405.422) time=22242.8 flags=0x12010a win=0x7f9883896250 winNum=9165 ctxt=0x0 chars="i" unmodchars="I" repeat=0 keyCode=34
Release: native_key: 0x22 (i) glfw_key: 0x69 mods: shift+super 
on_key_input: glfw key: 0x69 native_code: 0x22 action: RELEASE mods: shift+super text: '' state: 0 ignoring as keyboard mode does not support encoding this event
-------------- flags changed -----------------
NSEvent: type=FlagsChanged loc=(905.048,405.422) time=22242.8 flags=0x20102 win=0x7f9883896250 winNum=9165 ctxt=0x0 keyCode=55
flagsChanged: modifier: super native_key: 0x37 (<noname>) glfw_key: 0xe064 mods: shift 
on_key_input: glfw key: 0xe064 native_code: 0x37 action: RELEASE mods: shift text: '' state: 0 ignoring as keyboard mode does not support encoding this event
-------------- flags changed -----------------
NSEvent: type=FlagsChanged loc=(905.048,405.422) time=22242.8 flags=0x100 win=0x7f9883896250 winNum=9165 ctxt=0x0 keyCode=56
flagsChanged: modifier: shift native_key: 0x38 (<noname>) glfw_key: 0xe061 mods: none 
on_key_input: glfw key: 0xe061 native_code: 0x38 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.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: <none> 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: <none> 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
---------------- key down -------------------
NSEvent: type=KeyDown loc=(905.048,405.422) time=22243.7 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 text: <none> glfw_key: d marked_text: ()
on_key_input: glfw key: 0x64 native_code: 0x2 action: PRESS mods: none text: '' state: 0 sent encoded key to child: ^[ [ 1 0 0 u 
----------------- key up --------------------
NSEvent: type=KeyUp loc=(905.048,405.422) time=22243.8 flags=0x100 win=0x7f9883896250 winNum=9165 ctxt=0x0 chars="d" unmodchars="d" repeat=0 keyCode=2
Release: native_key: 0x2 (d) glfw_key: 0x64 mods: none 
on_key_input: glfw key: 0x64 native_code: 0x2 action: RELEASE mods: none text: '' state: 0 ignoring as keyboard mode does not support encoding this event
-------------- flags changed -----------------
NSEvent: type=FlagsChanged loc=(905.048,405.422) time=22244.7 flags=0x40101 win=0x7f9883896250 winNum=9165 ctxt=0x0 keyCode=59
flagsChanged: modifier: ctrl native_key: 0x3b (<noname>) glfw_key: 0xe062 mods: ctrl 
on_key_input: glfw key: 0xe062 native_code: 0x3b action: PRESS mods: ctrl text: '' state: 0 sent encoded key to child: ^[ [ 5 7 4 4 2 ; 5 u 
-------------- flags changed -----------------
NSEvent: type=FlagsChanged loc=(905.048,405.422) time=22244.9 flags=0x100 win=0x7f9883896250 winNum=9165 ctxt=0x0 keyCode=59
flagsChanged: modifier: ctrl native_key: 0x3b (<noname>) glfw_key: 0xe062 mods: none 
on_key_input: glfw key: 0xe062 native_code: 0x3b action: RELEASE mods: none text: '' state: 0 ignoring as keyboard mode does not support encoding this event
-------------- flags changed -----------------
NSEvent: type=FlagsChanged loc=(905.048,405.422) time=22245.2 flags=0x40101 win=0x7f9883896250 winNum=9165 ctxt=0x0 keyCode=59
flagsChanged: modifier: ctrl native_key: 0x3b (<noname>) glfw_key: 0xe062 mods: ctrl 
on_key_input: glfw key: 0xe062 native_code: 0x3b action: PRESS mods: ctrl text: '' state: 0 sent encoded key to child: ^[ [ 5 7 4 4 2 ; 5 u 
---------------- key down -------------------
NSEvent: type=KeyDown loc=(905.048,405.422) time=22245.2 flags=0x40101 win=0x7f9883896250 winNum=9165 ctxt=0x0 chars="" unmodchars="d" repeat=0 keyCode=2
Press: native_key: 0x2 (d) glfw_key: 0x64 mods: ctrl char_count: 1 deadKeyState: 0 repeat: 0 text: <none> glfw_key: d marked_text: ()
on_key_input: glfw key: 0x64 native_code: 0x2 action: PRESS mods: ctrl text: '' state: 0 sent encoded key to child: ^[ [ 1 0 0 ; 5 u 
Popped key encoding flags to: 0
----------------- key up --------------------
NSEvent: type=KeyUp loc=(905.048,405.422) time=22245.3 flags=0x40101 win=0x7f9883896250 winNum=9165 ctxt=0x0 chars="" unmodchars="d" repeat=0 keyCode=2
Release: native_key: 0x2 (d) glfw_key: 0x64 mods: ctrl 
on_key_input: glfw key: 0x64 native_code: 0x2 action: RELEASE mods: ctrl text: '' state: 0 ignoring as keyboard mode does not support encoding this event
-------------- flags changed -----------------
NSEvent: type=FlagsChanged loc=(905.048,405.422) time=22245.4 flags=0x100 win=0x7f9883896250 winNum=9165 ctxt=0x0 keyCode=59
flagsChanged: modifier: ctrl native_key: 0x3b (<noname>) glfw_key: 0xe062 mods: none 
on_key_input: glfw key: 0xe062 native_code: 0x3b action: RELEASE mods: none text: '' state: 0 ignoring as keyboard mode does not support encoding this event
-------------- flags changed -----------------
NSEvent: type=FlagsChanged loc=(905.048,405.422) time=22250.5 flags=0x100108 win=0x7f9883896250 winNum=9165 ctxt=0x0 keyCode=55
flagsChanged: modifier: super native_key: 0x37 (<noname>) 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=(905.048,405.422) time=22250.6 flags=0x100108 win=0x7f9883896250 winNum=9165 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: <none> 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=(905.048,405.422) time=22250.7 flags=0x100108 win=0x7f9883896250 winNum=9165 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
---------------- key down -------------------
NSEvent: type=KeyDown loc=(905.048,405.422) time=22250.8 flags=0x100108 win=0x7f9883896250 winNum=9165 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: <none> 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=(905.048,405.422) time=22250.9 flags=0x100108 win=0x7f9883896250 winNum=9165 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
-------------- flags changed -----------------
NSEvent: type=FlagsChanged loc=(905.048,405.422) time=22250.9 flags=0x100 win=0x7f9883896250 winNum=9165 ctxt=0x0 keyCode=55
flagsChanged: modifier: super native_key: 0x37 (<noname>) glfw_key: 0xe064 mods: none 
on_key_input: glfw key: 0xe064 native_code: 0x37 action: RELEASE mods: none text: '' state: 0 ignoring as keyboard mode does not support encoding this event
-------------- flags changed -----------------
NSEvent: type=FlagsChanged loc=(905.048,405.422) time=22253.6 flags=0x40101 win=0x7f9883896250 winNum=9165 ctxt=0x0 keyCode=59
flagsChanged: modifier: ctrl native_key: 0x3b (<noname>) glfw_key: 0xe062 mods: ctrl 
on_key_input: glfw key: 0xe062 native_code: 0x3b action: PRESS mods: ctrl text: '' state: 0 ignoring as keyboard mode does not support encoding this event
---------------- key down -------------------
NSEvent: type=KeyDown loc=(905.048,405.422) time=22253.7 flags=0x40101 win=0x7f9883896250 winNum=9165 ctxt=0x0 chars="" unmodchars="d" repeat=0 keyCode=2
Press: native_key: 0x2 (d) glfw_key: 0x64 mods: ctrl char_count: 1 deadKeyState: 0 repeat: 0 text: <none> glfw_key: d marked_text: ()
on_key_input: glfw key: 0x64 native_code: 0x2 action: PRESS mods: ctrl text: '' state: 0 sent encoded key to child: 0x4 
----------------- key up --------------------
NSEvent: type=KeyUp loc=(905.048,405.422) time=22253.7 flags=0x40101 win=0x7f9883896250 winNum=9165 ctxt=0x0 chars="" unmodchars="d" repeat=0 keyCode=2
Release: native_key: 0x2 (d) glfw_key: 0x64 mods: ctrl 
on_key_input: glfw key: 0x64 native_code: 0x2 action: RELEASE mods: ctrl text: '' state: 0 ignoring as keyboard mode does not support encoding this event
---------------- key down -------------------
NSEvent: type=KeyDown loc=(905.048,405.422) time=22253.8 flags=0x40101 win=0x7f9883896250 winNum=9165 ctxt=0x0 chars="" unmodchars="d" repeat=0 keyCode=2
Press: native_key: 0x2 (d) glfw_key: 0x64 mods: ctrl char_count: 1 deadKeyState: 0 repeat: 0 text: <none> glfw_key: d marked_text: ()
on_key_input: glfw key: 0x64 native_code: 0x2 action: PRESS mods: ctrl text: '' state: 0 sent encoded key to child: 0x4 
----------------- key up --------------------
NSEvent: type=KeyUp loc=(905.048,405.422) time=22253.9 flags=0x40101 win=0x7f9883896250 winNum=9165 ctxt=0x0 chars="" unmodchars="d" repeat=0 keyCode=2
Release: native_key: 0x2 (d) glfw_key: 0x64 mods: ctrl 
on_key_input: glfw key: 0x64 native_code: 0x2 action: RELEASE mods: ctrl text: '' state: 0 ignoring as keyboard mode does not support encoding this event
---------------- key down -------------------
NSEvent: type=KeyDown loc=(905.048,405.422) time=22254.0 flags=0x40101 win=0x7f9883896250 winNum=9165 ctxt=0x0 chars="" unmodchars="d" repeat=0 keyCode=2
Press: native_key: 0x2 (d) glfw_key: 0x64 mods: ctrl char_count: 1 deadKeyState: 0 repeat: 0 text: <none> glfw_key: d marked_text: ()
on_key_input: glfw key: 0x64 native_code: 0x2 action: PRESS mods: ctrl text: '' state: 0 sent encoded key to child: 0x4 
----------------- key up --------------------
NSEvent: type=KeyUp loc=(905.048,405.422) time=22254.1 flags=0x40101 win=0x7f9883896250 winNum=9165 ctxt=0x0 chars="" unmodchars="d" repeat=0 keyCode=2
Release: native_key: 0x2 (d) glfw_key: 0x64 mods: ctrl 
on_key_input: glfw key: 0x64 native_code: 0x2 action: RELEASE mods: ctrl text: '' state: 0 ignoring as keyboard mode does not support encoding this event
---------------- key down -------------------
NSEvent: type=KeyDown loc=(905.048,405.422) time=22254.2 flags=0x40101 win=0x7f9883896250 winNum=9165 ctxt=0x0 chars="" unmodchars="d" repeat=0 keyCode=2
Press: native_key: 0x2 (d) glfw_key: 0x64 mods: ctrl char_count: 1 deadKeyState: 0 repeat: 0 text: <none> glfw_key: d marked_text: ()
on_key_input: glfw key: 0x64 native_code: 0x2 action: PRESS mods: ctrl text: '' state: 0 sent encoded key to child: 0x4 
----------------- key up --------------------
NSEvent: type=KeyUp loc=(905.048,405.422) time=22254.2 flags=0x40101 win=0x7f9883896250 winNum=9165 ctxt=0x0 chars="" unmodchars="d" repeat=0 keyCode=2
Release: native_key: 0x2 (d) glfw_key: 0x64 mods: ctrl 
on_key_input: glfw key: 0x64 native_code: 0x2 action: RELEASE mods: ctrl text: '' state: 0 ignoring as keyboard mode does not support encoding this event
---------------- key down -------------------
NSEvent: type=KeyDown loc=(905.048,405.422) time=22254.7 flags=0x40101 win=0x7f9883896250 winNum=9165 ctxt=0x0 chars="" unmodchars="d" repeat=0 keyCode=2
Press: native_key: 0x2 (d) glfw_key: 0x64 mods: ctrl char_count: 1 deadKeyState: 0 repeat: 0 text: <none> glfw_key: d marked_text: ()
on_key_input: glfw key: 0x64 native_code: 0x2 action: PRESS mods: ctrl text: '' state: 0 sent encoded key to child: 0x4 
----------------- key up --------------------
NSEvent: type=KeyUp loc=(905.048,405.422) time=22254.7 flags=0x40101 win=0x7f9883896250 winNum=9165 ctxt=0x0 chars="" unmodchars="d" repeat=0 keyCode=2
Release: native_key: 0x2 (d) glfw_key: 0x64 mods: ctrl 
on_key_input: glfw key: 0x64 native_code: 0x2 action: RELEASE mods: ctrl text: '' state: 0 ignoring as keyboard mode does not support encoding this event

`echo; kitty --debug-keyboard' took 31.2s to run.

Screenshots
none.

Environment details

kitty 0.32.1 (08d88af2fb) created by Kovid Goyal
OS: macOS Big Sur 11.4 20F71 x86_64
Host: MacBook Pro (13-inch, 2020, Four Thunderbolt 3 ports)
Kernel: 20.5.0
Shell: zsh 5.8
Terminal: xterm-kitty
CPU: Intel(R) Core(TM) i5-1038NG7 (8) @ 2 GHz
GPU: Intel Iris Plus Graphics
Memory: 8.71 GiB / 16.00 GiB (54%)
Disk (/): 285 GiB / 466 GiB (61%)
Battery: 100% [Fully charged]
Locale: en_US.UTF-8

Since the bug is reproducible with kitty --config NONE (type a s after super+shift+i), I am not including other informations here.

Additional context
Bug is reproducible with kitty --config NONE (type a s after super+shift+i).
From logs, it is also possible to be caused by recent commit related to macos menu bar action (#6680)

@ed9w2in6 ed9w2in6 added the bug label Feb 6, 2024
@ed9w2in6
Copy link
Author

ed9w2in6 commented Feb 6, 2024

For users, some work arounds:

  1. bug with custom keybinds
  • use default keybinds
  1. bug with set_tab_title, and other commands
  • NO work arounds.

@kovidgoyal
Copy link
Owner

dup of #7074

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants