mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-26 08:49:37 +00:00
Correct subject of switch.
This commit is contained in:
parent
48c2dcf50e
commit
2d223305eb
@ -800,7 +800,7 @@ std::optional<Inputs::Keyboard::Key> MainWindow::keyForEvent(QKeyEvent *event) {
|
||||
if(QGuiApplication::platformName() == QLatin1String("xcb")) {
|
||||
#define BIND(code, key) case code: return Inputs::Keyboard::Key::key;
|
||||
|
||||
switch(event->nativeVirtualKey()) {
|
||||
switch(event->nativeScanCode()) {
|
||||
default: qDebug() << "Unmapped" << event->nativeScanCode(); return {};
|
||||
|
||||
BIND(1, Escape);
|
||||
|
Loading…
Reference in New Issue
Block a user