Changeset 7191 for trunk/src


Ignore:
Timestamp:
Oct 24, 2001, 3:19:10 PM (24 years ago)
Author:
phaller
Message:

.

Location:
trunk/src/user32
Files:
2 edited

Legend:

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

    r7166 r7191  
    1 /* $Id: oslibmsgtranslate.cpp,v 1.64 2001-10-23 08:36:20 phaller Exp $ */
     1/* $Id: oslibmsgtranslate.cpp,v 1.65 2001-10-24 13:18:59 phaller Exp $ */
    22/*
    33 * Window message translation functions for OS/2
     
    605605     
    606606    case WM_CHAR_SPECIAL:
    607       {
     607    {
    608608        // @@@PH
    609609        // special char message from the keyboard hook
     
    612612        // AltGr is a very, very strange key!
    613613        UCHAR ucPMScanCode = CHAR4FROMMP(os2Msg->mp1);
    614         if (PMSCAN_ALTRIGHT == ucPMScanCode)
    615         {
    616           ULONG flags = SHORT1FROMMP(os2Msg->mp1);
     614        switch (ucPMScanCode)
     615        {
     616          case PMSCAN_ESC:
     617            // Note: ESC generates a WM_CHAR under Windows, not under PM
     618            // so we've got to post it to ourself here!
     619            // WM_CHAR(0x0000001bh, 000010001h)
     620            // @@@PH
     621            break;
    617622         
    618           // we need very special treatment here for the
    619           // poor, crippled AltGr key
    620          
    621           if (flags & KC_KEYUP)
     623          case PMSCAN_ALTRIGHT:
    622624          {
    623             // key up
    624             // 1 - generate a virtual LCONTROL-keypress
    625             // 2 - send LMENU-keypress (NT emulates ALtGr w/ Ctrl-Alt!)
     625            ULONG flags = SHORT1FROMMP(os2Msg->mp1);
     626           
     627            // we need very special treatment here for the
     628            // poor, crippled AltGr key
     629           
     630            if (flags & KC_KEYUP)
     631            {
     632              // key up
     633              // 1 - generate a virtual LCONTROL-keypress
     634              // 2 - send LMENU-keypress (NT emulates ALtGr w/ Ctrl-Alt!)
     635            }
     636            else
     637            {
     638              // key down:
     639              // 1 - generate a virtual LCONTROL-keypress
     640              // 2 - send LMENU-keypress (NT emulates ALtGr w/ Ctrl-AltGr!)
     641            }
    626642          }
    627           else
    628           {
    629             // key down:
    630             // 1 - generate a virtual LCONTROL-keypress
    631             // 2 - send LMENU-keypress (NT emulates ALtGr w/ Ctrl-Alt!)
    632           }
    633         }
    634       }
     643        } /* switch */
     644    } /* case */
    635645        // NO BREAK! FALLTHRU CASE!
    636646     
  • trunk/src/user32/winkeyboard.cpp

    r7190 r7191  
    1 /* $Id: winkeyboard.cpp,v 1.20 2001-10-24 12:26:56 phaller Exp $ */
     1/* $Id: winkeyboard.cpp,v 1.21 2001-10-24 13:19:00 phaller Exp $ */
    22/*
    33 * Win32 <-> PM key translation
     
    175175/* 0x7a PMSCAN_SIZE         */ , 0x00                       ,FALSE
    176176/* 0x7b PMSCAN_NLS1         */ , 0x00                       ,FALSE
    177 /* 0x7c PMSCAN_APPLICATION  */ , VK_APPS                    ,FALSE
     177/* 0x7c PMSCAN_APPLICATION  */ , VK_APPS                    ,TRUE
    178178/* 0x7d PMSCAN_E13          */ , 0x00                       ,FALSE
    179 /* 0x7e PMSCAN              */ , 0x00                       ,FALSE
    180 /* 0x7f PMSCAN              */ , 0x00                       ,FALSE
     179/* 0x7e PMSCAN_WINLEFT      */ , VK_LWIN                    ,TRUE
     180/* 0x7f PMSCAN_WINRIGHT     */ , VK_RWIN                    ,TRUE
    181181/* 0x80 PMSCAN_PA1          */ , VK_PA1                     ,FALSE
    182182/* 0x81 PMSCAN_F13          */ , VK_F13                     ,FALSE
     
    712712/* 0x7a PMSCAN_SIZE         */ , 0x00                       ,FALSE
    713713/* 0x7b PMSCAN_NLS1         */ , 0x00                       ,FALSE
    714 /* 0x7c PMSCAN_APPLICATION  */ , WINSCAN_APPLICATION        ,FALSE
     714/* 0x7c PMSCAN_APPLICATION  */ , WINSCAN_APPLICATION        ,TRUE
    715715/* 0x7d PMSCAN_E13          */ , 0x00                       ,FALSE
    716 /* 0x7e PMSCAN              */ , 0x00                       ,FALSE
    717 /* 0x7f PMSCAN              */ , 0x00                       ,FALSE
     716/* 0x7e PMSCAN              */ , WINSCAN_WINLEFT            ,TRUE
     717/* 0x7f PMSCAN              */ , WINSCAN_WINRIGHT           ,TRUE
    718718/* 0x80 PMSCAN_PA1          */ , WINSCAN_PA1                ,FALSE
    719719/* 0x81 PMSCAN_F13          */ , WINSCAN_F13                ,FALSE
Note: See TracChangeset for help on using the changeset viewer.