Ignore:
Timestamp:
Jul 8, 2001, 5:51:43 PM (24 years ago)
Author:
sandervl
Message:

edit control bugfix (selected text); key translation additions; clipboard memory handle translation added

File:
1 edited

Legend:

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

    r6157 r6254  
    1 /* $Id: oslibmsgtranslate.cpp,v 1.56 2001-07-03 20:36:54 sandervl Exp $ */
     1/* $Id: oslibmsgtranslate.cpp,v 1.57 2001-07-08 15:51:42 sandervl Exp $ */
    22/*
    33 * Window message translation functions for OS/2
     
    140140    0x12, 0x5E,     // 0x5E RAlt
    141141    0x13, 0x45,     // 0x5F Pause
    142     0, 0,           // 0x60
    143     0, 0,           // 0x61
    144     0, 0,           // 0x62
    145     0, 0,           // 0x63
    146     0, 0,           // 0x64
    147     0, 0,           // 0x65
    148     0, 0,           // 0x66
    149     0, 0,           // 0x67
    150     0, 0,           // 0x68
    151     0, 0,           // 0x69
    152     0, 0,           // 0x6A
    153     0, 0,           // 0x6B
     142    VK_HOME_W,   0x60,           // 0x60
     143    VK_UP_W,     0x61,           // 0x61
     144    VK_PRIOR_W,  0x62,           // 0x62
     145    VK_LEFT_W,   0x63,           // 0x63
     146    VK_RIGHT_W,  0x64,           // 0x64
     147    VK_END_W,    0x65,           // 0x65
     148    VK_DOWN_W,   0x66,           // 0x66
     149    VK_NEXT_W,   0x67,           // 0x67
     150    VK_INSERT_W, 0x68,           // 0x68
     151    VK_DELETE_W, 0x69,           // 0x69
     152    VK_F23_W,    0x6A,           // 0x6A
     153    VK_F24_W,    0x6B,           // 0x6B
    154154    0x5D, 0x15D,    // 0x6C RWin (PM scan 0x7C)
    155155    0, 0,           // 0x6D
     
    604604            // get "virtual" scancode from character code because
    605605            // for "regular" keys they are equal
    606             scanCode = ( SHORT1FROMMP(os2Msg->mp2) >> 8) & 0x0FF;
     606            if(!(flags & (KC_SHIFT|KC_ALT|KC_CTRL))) {
     607                scanCode = ( SHORT1FROMMP(os2Msg->mp2) >> 8) & 0x0FF;
     608            }
    607609            isExtended = TRUE;
    608610        }
     
    651653            winMsg->lParam = winMsg->lParam | (1<<24);
    652654
    653         if (!(SHORT1FROMMP(os2Msg->mp1) & KC_ALT))
     655        if (!(flags & KC_ALT))
    654656        {
    655657            //
     
    687689                    winMsg->lParam |= 1 << 30;                          // bit 30, previous state, 1 means key was pressed
    688690            }
     691//NT sends WM_SYSKEYDOWN for single Alt key
     692#if 0
    689693            if(winMsg->wParam == VK_MENU_W) {
    690694                winMsg->message = 0; //WM_SYS* already implies Alt
    691695            }
     696#endif
    692697        }
    693698        if (ISKDB_CAPTURED())
Note: See TracChangeset for help on using the changeset viewer.