qt: Fix xkb Pause key handling
This commit is contained in:
@@ -1552,6 +1552,10 @@ x11_keycode_to_keysym(uint32_t keycode)
|
||||
}
|
||||
}
|
||||
#endif
|
||||
/* Special case for Ctrl+Pause. */
|
||||
if ((finalkeycode == 0x145) && (keyboard_recv(0x1d) || keyboard_recv(0x11d)))
|
||||
finalkeycode = 0x146;
|
||||
|
||||
if (rctrl_is_lalt && finalkeycode == 0x11D)
|
||||
finalkeycode = 0x38;
|
||||
return finalkeycode;
|
||||
|
@@ -141,8 +141,8 @@ std::unordered_map<std::string, uint16_t> xkb_keycodes{
|
||||
{"SYRQ", 0x137},
|
||||
{"FK13", 0x137}, /* F13 as SysRq */
|
||||
{"RALT", 0x138},
|
||||
{"PAUS", 0x146}, /* special case */
|
||||
{"FK15", 0x146}, /* F15 as Pause */
|
||||
{"PAUS", 0x145},
|
||||
{"FK15", 0x145}, /* F15 as Pause */
|
||||
{"HOME", 0x147},
|
||||
{"UP", 0x148},
|
||||
{"PGUP", 0x149},
|
||||
|
Reference in New Issue
Block a user