Fix macOS right modifier detection.
Turns out my system was affected by a bug with modifier remapping in macOS causing some of my left/right modifiers to be swapped. This commit fixes them to be the correct values.
This commit is contained in:
parent
0a3a2ad009
commit
0a718adc77
|
@ -240,7 +240,7 @@ bool IsRightModKey(QKeyEvent* event)
|
|||
bool IsRightModKey(QKeyEvent* event)
|
||||
{
|
||||
quint32 scan = event->nativeVirtualKey();
|
||||
return (scan == 0x37 || scan == 0x3A || scan == 0x3C || scan == 0x3E);
|
||||
return (scan == 0x36 || scan == 0x3C || scan == 0x3D || scan == 0x3E);
|
||||
}
|
||||
#else
|
||||
bool IsRightModKey(QKeyEvent* event)
|
||||
|
|
Loading…
Reference in New Issue