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;