From 0ed13fa438c49b7f0be93c5d0a22e54fc65d5bd4 Mon Sep 17 00:00:00 2001 From: RichardG867 Date: Mon, 26 Jun 2023 21:27:37 -0300 Subject: [PATCH] qt: Fix Korean key passthrough on non-raw input --- src/qt/qt_mainwindow.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/qt/qt_mainwindow.cpp b/src/qt/qt_mainwindow.cpp index d571c7266..7d37c0c84 100644 --- a/src/qt/qt_mainwindow.cpp +++ b/src/qt/qt_mainwindow.cpp @@ -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;