Skip to content

Commit

Permalink
Merge pull request #18 from semanser/semanser-patch-1
Browse files Browse the repository at this point in the history
Fix issue with non-English keyboard on Windows (Fixes #17)
  • Loading branch information
Skycoder42 authored Mar 10, 2018
2 parents 080ddd4 + 9a90aff commit f00ae2a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions QHotkey/qhotkey_win.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}

Expand Down

0 comments on commit f00ae2a

Please sign in to comment.