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
+6 -2
View File
@@ -202,8 +202,12 @@ quint32 QHotkeyPrivateWin::nativeKeycode(Qt::Key keycode, bool &ok)
return VK_OEM_FJ_TOUROKU;
default:
ok = false;
return 0;
if(keycode <= 0xFFFF)
return (byte)keycode;
else {
ok = false;
return 0;
}
}
}