This commit is contained in:
shenlebantongying 2024-11-14 03:54:17 -05:00
parent e50492323c
commit 17026e3553

View file

@ -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;