Compare commits

...

2 commits

Author SHA1 Message Date
shenlebantongying a62f871da7 b 2024-11-14 03:58:26 -05:00
shenlebantongying 17026e3553 c 2024-11-14 03:54:17 -05:00

View file

@ -331,9 +331,10 @@ 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;
}
switch ( key ) { switch ( key ) {
case Qt::Key_Space: case Qt::Key_Space: