This commit is contained in:
shenlebantongying 2024-11-14 03:58:26 -05:00
parent 17026e3553
commit a62f871da7

View file

@ -332,8 +332,9 @@ bool HotkeyWrapper::winEvent( MSG * message, qintptr * result )
quint32 HotkeyWrapper::nativeKey( int key ) quint32 HotkeyWrapper::nativeKey( int key )
{ {
// Qt's 0-9 & 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: