Skip to content

Commit f00ae2a

Browse files
authored
Merge pull request #18 from semanser/semanser-patch-1
Fix issue with non-English keyboard on Windows (Fixes #17)
2 parents 080ddd4 + 9a90aff commit f00ae2a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

QHotkey/qhotkey_win.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,12 @@ quint32 QHotkeyPrivateWin::nativeKeycode(Qt::Key keycode, bool &ok)
202202
return VK_OEM_FJ_TOUROKU;
203203

204204
default:
205-
ok = false;
206-
return 0;
205+
if(keycode <= 0xFFFF)
206+
return (byte)keycode;
207+
else {
208+
ok = false;
209+
return 0;
210+
}
207211
}
208212
}
209213

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy