mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 00:14:06 +00:00
c
This commit is contained in:
parent
e50492323c
commit
17026e3553
|
@ -331,7 +331,7 @@ bool HotkeyWrapper::winEvent( MSG * message, qintptr * result )
|
||||||
/// Ref: https://learn.microsoft.com/en-us/windows/win32/inputdev/virtual-key-codes
|
/// Ref: https://learn.microsoft.com/en-us/windows/win32/inputdev/virtual-key-codes
|
||||||
quint32 HotkeyWrapper::nativeKey( int key )
|
quint32 HotkeyWrapper::nativeKey( int key )
|
||||||
{
|
{
|
||||||
// Qt's 0-1 & A-Z overlaps with Windows's VK
|
// Qt's 0-9 & A-Z overlaps with Windows's VK
|
||||||
if ( key >= Qt::Key_0 && key <= Qt::Key_9 || key >= Qt::Key_A && key <= Qt::Key_Z )
|
if ( key >= Qt::Key_0 && key <= Qt::Key_9 || key >= Qt::Key_A && key <= Qt::Key_Z )
|
||||||
return key;
|
return key;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue