Merge pull request #18 from semanser/semanser-patch-1

Fix issue with non-English keyboard on Windows (Fixes #17)
This commit is contained in:
Felix Barz
2018-03-10 16:11:11 +01:00
committed by GitHub
+6 -2
View File
@@ -202,8 +202,12 @@ quint32 QHotkeyPrivateWin::nativeKeycode(Qt::Key keycode, bool &ok)
return VK_OEM_FJ_TOUROKU; return VK_OEM_FJ_TOUROKU;
default: default:
ok = false; if(keycode <= 0xFFFF)
return 0; return (byte)keycode;
else {
ok = false;
return 0;
}
} }
} }