Fix issue with non-English keyboard on Windows

Full issue described in #17.
This commit is contained in:
Andriy Semenets
2018-03-10 16:42:45 +02:00
committed by GitHub
parent 080ddd479a
commit 9a90aff273
+4
View File
@@ -202,9 +202,13 @@ quint32 QHotkeyPrivateWin::nativeKeycode(Qt::Key keycode, bool &ok)
return VK_OEM_FJ_TOUROKU;
default:
if(keycode <= 0xFFFF)
return (byte)keycode;
else {
ok = false;
return 0;
}
}
}
quint32 QHotkeyPrivateWin::nativeModifiers(Qt::KeyboardModifiers modifiers, bool &ok)