X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e15bbde04114171a20d8f74d4c602cb53c84908d..ae1daed0739bf3c60b5bff4fbda823be2ee67872:/src/os2/accel.cpp diff --git a/src/os2/accel.cpp b/src/os2/accel.cpp index 611f53c959..8e1c6f43b6 100644 --- a/src/os2/accel.cpp +++ b/src/os2/accel.cpp @@ -120,11 +120,20 @@ wxAcceleratorTable::wxAcceleratorTable( USHORT uVirt = AF_CHAR; if (vaEntries[i].GetFlags() & wxACCEL_ALT) + { uVirt |= AF_ALT; + uVirt |= AF_VIRTUALKEY; + } if (vaEntries[i].GetFlags() & wxACCEL_SHIFT) + { uVirt |= AF_SHIFT; + uVirt |= AF_VIRTUALKEY; + } if (vaEntries[i].GetFlags() & wxACCEL_CTRL) + { uVirt |= AF_CONTROL; + uVirt |= AF_VIRTUALKEY; + } bool bIsVirtual; USHORT uKey = wxCharCodeWXToOS2( vaEntries[i].GetKeyCode() @@ -199,10 +208,5 @@ bool wxAcceleratorTable::Translate( int x = 1; } return (Ok() && rc); -// ::WinTranslateAccel( vHabmain -// ,(HWND)hWnd -// ,GetHaccel() -// ,pMsg -// ); } // end of wxAcceleratorTable::Translate