mirror of
https://github.com/gnustep/libs-back.git
synced 2025-04-23 16:10:52 +00:00
handle altgr, bug #25397
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@27858 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
8bb746dd57
commit
1cbd3fa6ed
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
2009-02-11 Riccardo Mottola <rmottola@users.sf.net>
|
||||
|
||||
* Source/win32/WIN32Server.m: Handle Alt-Gr (bug #25397)
|
||||
|
||||
2009-02-11 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/x11/XGServerWindow.m: Minor fixes to compile with GC
|
||||
|
|
|
@ -1668,7 +1668,8 @@ process_key_event(WIN32Server *svr, HWND hwnd, WPARAM wParam, LPARAM lParam,
|
|||
|
||||
GetKeyboardState(keyState);
|
||||
eventFlags = 0;
|
||||
if (keyState[VK_CONTROL] & 128)
|
||||
/* AltGr is mapped to right alt + left control */
|
||||
if ((keyState[VK_CONTROL] & 128) && !((keyState[VK_LCONTROL] & 128) && (keyState[VK_RMENU] & 128)))
|
||||
eventFlags |= NSControlKeyMask;
|
||||
if (keyState[VK_SHIFT] & 128)
|
||||
eventFlags |= NSShiftKeyMask;
|
||||
|
|
Loading…
Reference in a new issue