From 9ebbaea6c51be4f0d7e0909b05e168f5d6e8e54a Mon Sep 17 00:00:00 2001 From: RichardG867 Date: Tue, 11 Apr 2023 11:58:11 -0300 Subject: [PATCH] qt: Add special case for Microsoft scroll keys --- src/qt/qt_mainwindow.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/qt/qt_mainwindow.cpp b/src/qt/qt_mainwindow.cpp index 0c5e204ce..8f230ec5a 100644 --- a/src/qt/qt_mainwindow.cpp +++ b/src/qt/qt_mainwindow.cpp @@ -941,6 +941,15 @@ MainWindow::processKeyboardInput(bool down, uint32_t keycode) } break; + case 0x10b: /* Microsoft scroll up normal */ + case 0x18b: /* Microsoft scroll down normal */ + /* This abuses make/break codes. Send them manually, only on press. */ + if (down) { + keyboard_send(0xe0); + keyboard_send(keycode & 0xff); + } + return; + case 0x11d: /* Right Ctrl */ if (rctrl_is_lalt) keycode = 0x38; /* map to Left Alt */