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:
Nadia Holmquist Pedersen 2021-04-29 19:45:41 +02:00
parent 0a3a2ad009
commit 0a718adc77
1 changed files with 1 additions and 1 deletions

View File

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