Changeset 8566 for trunk/src


Ignore:
Timestamp:
Jun 4, 2002, 12:11:58 PM (23 years ago)
Author:
sandervl
Message:

Fix for AltGr key combinations

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/oslibmsgtranslate.cpp

    r8474 r8566  
    1 /* $Id: oslibmsgtranslate.cpp,v 1.87 2002-05-23 07:13:00 sandervl Exp $ */
     1/* $Id: oslibmsgtranslate.cpp,v 1.88 2002-06-04 10:11:58 sandervl Exp $ */
    22/*
    33 * Window message translation functions for OS/2
     
    628628            winMsg->lParam = winMsg->lParam | WIN_KEY_EXTENDED;
    629629
    630         //@PF PM does not add KC_ALT to right alt but win32 does it
    631         if (WinGetKeyState(HWND_DESKTOP, VK_ALTGRAF) & 0x8000) flags |= KC_ALT;
    632630#if 0
    633631//TODO
     
    715713          { // send WM_KEYDOWN message
    716714            winMsg->message = WINWM_KEYDOWN;
     715
    717716            if (keyWasPressed)
    718717              winMsg->lParam |= WIN_KEY_PREVSTATE;                  // bit 30, previous state, 1 means key was pressed
     
    752751              }
    753752            }
     753          }
     754          // if right alt is down, then we need to set the alt down bit too
     755          if (WinGetKeyState(HWND_DESKTOP, VK_ALTGRAF) & 0x8000) {
     756              winMsg->lParam |= WIN_KEY_ALTHELD;           
    754757          }
    755758        }
Note: See TracChangeset for help on using the changeset viewer.