1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-10-04 01:57:54 +00:00

Correct subject of switch.

This commit is contained in:
Thomas Harte 2020-07-08 00:49:29 -04:00
parent 48c2dcf50e
commit 2d223305eb

View File

@ -800,7 +800,7 @@ std::optional<Inputs::Keyboard::Key> MainWindow::keyForEvent(QKeyEvent *event) {
if(QGuiApplication::platformName() == QLatin1String("xcb")) { if(QGuiApplication::platformName() == QLatin1String("xcb")) {
#define BIND(code, key) case code: return Inputs::Keyboard::Key::key; #define BIND(code, key) case code: return Inputs::Keyboard::Key::key;
switch(event->nativeVirtualKey()) { switch(event->nativeScanCode()) {
default: qDebug() << "Unmapped" << event->nativeScanCode(); return {}; default: qDebug() << "Unmapped" << event->nativeScanCode(); return {};
BIND(1, Escape); BIND(1, Escape);