qt: Fix Korean key passthrough on non-raw input

This commit is contained in:
RichardG867
2023-06-26 21:27:37 -03:00
parent 85ac2da5b4
commit 0ed13fa438

View File

@@ -942,11 +942,13 @@ MainWindow::processKeyboardInput(bool down, uint32_t keycode)
}
break;
case 0x80 ... 0xff: /* regular break codes */
case 0x10b: /* Microsoft scroll up normal */
case 0x18b: /* Microsoft scroll down normal */
/* This abuses make/break codes. Send them manually, only on press. */
case 0x180 ... 0x1ff: /* E0 break codes (including Microsoft scroll down normal) */
/* This key uses a break code as make. Send it manually, only on press. */
if (down) {
keyboard_send(0xe0);
if (keycode & 0x100)
keyboard_send(0xe0);
keyboard_send(keycode & 0xff);
}
return;