qt: Fix xkb Pause key handling

This commit is contained in:
RichardG867
2023-04-08 01:03:21 -03:00
parent 38d78a7b7c
commit 080859f184
2 changed files with 6 additions and 2 deletions

View File

@@ -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;

View File

@@ -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},