mirror of
https://github.com/Skycoder42/QHotkey.git
synced 2026-11-19 12:49:58 +03:00
Fix implicit conversion warning
This commit is contained in:
@@ -71,7 +71,7 @@ quint32 QHotkeyPrivateWin::nativeKeycode(Qt::Key keycode, bool &ok)
|
|||||||
{
|
{
|
||||||
ok = true;
|
ok = true;
|
||||||
if(keycode <= 0xFFFF) {//Try to obtain the key from it's "character"
|
if(keycode <= 0xFFFF) {//Try to obtain the key from it's "character"
|
||||||
const SHORT vKey = VkKeyScanW(keycode);
|
const SHORT vKey = VkKeyScanW(static_cast<WCHAR>(keycode));
|
||||||
if(vKey > -1)
|
if(vKey > -1)
|
||||||
return LOBYTE(vKey);
|
return LOBYTE(vKey);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user