qt: Add Alt+PrtSc special case for one evdev key

This commit is contained in:
RichardG867
2023-04-09 19:49:25 -03:00
parent fb00a89b89
commit 8fc6027756
2 changed files with 11 additions and 1 deletions

View File

@@ -931,6 +931,16 @@ MainWindow::processKeyboardInput(bool down, uint32_t keycode)
/* Apply special cases. */
switch (keycode) {
case 0x54: /* Alt + Print Screen (special case, i.e. evdev SELECTIVE_SCREENSHOT) */
/* Send Alt as well. */
if (down) {
keyboard_input(down, 0x38);
} else {
keyboard_input(down, keycode);
keycode = 0x38;
}
break;
case 0x11d: /* Right Ctrl */
if (rctrl_is_lalt)
keycode = 0x38; /* map to Left Alt */