input: kitty: disable CSI for Caps- and Num-Lock

Not sure why these keys have CSIs in the kitty spec; they don’t emit
anything.

Could it be that they are used if the keys are *not* modifiers in the
current layout?
This commit is contained in:
Daniel Eklöf 2021-11-21 11:44:53 +01:00
parent e744cee760
commit ebad4bba28
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -1190,9 +1190,9 @@ kitty_kbd_protocol(struct seat *seat, struct terminal *term,
case XKB_KEY_Page_Down: key = 6; final = '~'; break;
case XKB_KEY_Home: key = 1; final = 'H'; break;
case XKB_KEY_End: key = 1; final = 'F'; break;
case XKB_KEY_Caps_Lock: key = 57358; final = 'u'; break;
//case XKB_KEY_Caps_Lock: key = 57358; final = 'u'; break;
case XKB_KEY_Scroll_Lock: key = 57359; final = 'u'; break;
case XKB_KEY_Num_Lock: key = 57360; final = 'u'; break;
//case XKB_KEY_Num_Lock: key = 57360; final = 'u'; break;
case XKB_KEY_Print: key = 57361; final = 'u'; break;
case XKB_KEY_Pause: key = 57362; final = 'u'; break;
case XKB_KEY_Menu: key = 57363; final = 'u'; break;