Changeset 3127 for trunk/src


Ignore:
Timestamp:
Mar 16, 2000, 8:19:11 PM (25 years ago)
Author:
sandervl
Message:

VK_RETURN fix

Location:
trunk/src/user32
Files:
4 edited

Legend:

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

    r3108 r3127  
    1 /* $Id: oslibmsgtranslate.cpp,v 1.24 2000-03-14 15:01:00 sandervl Exp $ */
     1/* $Id: oslibmsgtranslate.cpp,v 1.25 2000-03-16 19:19:09 sandervl Exp $ */
    22/*
    33 * Window message translation functions for OS/2
     
    4646               0x09,    // VK_TAB           VK_TAB
    4747               0x00,    // VK_BACKTAB       No equivalent!
    48                0x0A,    // VK_NEWLINE       0x0A (no VK_* def)
     48               0x0D,    // VK_NEWLINE       VK_RETURN
    4949               0x10,    // VK_SHIFT         VK_SHIFT
    5050               0x11,    // VK_CTRL          VK_CONTROL
     
    608608        winMsg->lParam  = repeatCount & 0x0FFFF;                 // bit 0-15, repeatcount
    609609        winMsg->lParam |= (scanCode & 0x0FF) << 16;              // bit 16-23, scancode
    610         win32wnd->setExtendedKey(virtualKey, (ULONG *)&winMsg->lParam);
     610
     611        //TODO: Is this correct and complete? (how does PM differentiate between
     612        //      i.e numeric pad pgdn & 'normal' pgdn??)
     613        //Check if it's an extended key
     614        switch(virtualKey) {
     615        case VK_RETURN_W:
     616                //The enter key on the numeric keypad is an extended key
     617                if(SHORT2FROMMP(os2Msg->mp2) != VK_NEWLINE)
     618                        break;
     619                //no break
     620        case VK_LEFT_W:
     621        case VK_RIGHT_W:
     622        case VK_DOWN_W:
     623        case VK_UP_W:
     624        case VK_PRIOR_W:
     625        case VK_NEXT_W:
     626        case VK_END_W:
     627        case VK_DIVIDE_W:
     628        case VK_DELETE_W:
     629        case VK_HOME_W:
     630        case VK_INSERT_W:
     631        case VK_RCONTROL_W:
     632        case VK_RMENU_W: //is this the right alt???
     633                winMsg->lParam = winMsg->lParam | (1<<24);
     634                break;
     635        }
    611636
    612637        if(!(SHORT1FROMMP(os2Msg->mp1) & KC_ALT))
  • trunk/src/user32/win32wbase.cpp

    r2956 r3127  
    1 /* $Id: win32wbase.cpp,v 1.171 2000-03-01 13:30:05 sandervl Exp $ */
     1/* $Id: win32wbase.cpp,v 1.172 2000-03-16 19:19:10 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    857857}
    858858//******************************************************************************
    859 //TODO: Is this correct and complete?
    860 //Add print screen, break & numlock
    861 //******************************************************************************
    862 void Win32BaseWindow::setExtendedKey(ULONG virtualkey, ULONG *lParam)
    863 {
    864     switch(virtualkey) {
    865     case VK_LEFT:
    866     case VK_RIGHT:
    867     case VK_DOWN:
    868     case VK_UP:
    869     case VK_PRIOR:
    870     case VK_NEXT:
    871     case VK_END:
    872     case VK_DIVIDE:
    873     case VK_DELETE:
    874     case VK_EXECUTE: //Numeric enter key?
    875     case VK_HOME:
    876     case VK_INSERT:
    877     case VK_RCONTROL:
    878     case VK_RMENU: //is this the right alt???
    879         *lParam = *lParam | (1<<24);
    880     }
    881 }
    882 //******************************************************************************
    883859//******************************************************************************
    884860ULONG Win32BaseWindow::DispatchMsgA(MSG *msg)
  • trunk/src/user32/win32wbase.h

    r3101 r3127  
    1 /* $Id: win32wbase.h,v 1.88 2000-03-13 13:10:48 sandervl Exp $ */
     1/* $Id: win32wbase.h,v 1.89 2000-03-16 19:19:11 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    301301       LRESULT  SendInternalMessageW(ULONG msg, WPARAM wParam, LPARAM lParam);
    302302        void    Init();
    303         void    setExtendedKey(ULONG virtualkey, ULONG *lParam);
    304303
    305304        HWND    OS2Hwnd;
  • trunk/src/user32/win32wndhandle.cpp

    r2803 r3127  
    1 /* $Id: win32wndhandle.cpp,v 1.5 2000-02-16 14:28:25 sandervl Exp $ */
     1/* $Id: win32wndhandle.cpp,v 1.6 2000-03-16 19:19:11 sandervl Exp $ */
    22/*
    33 * Win32 Handle Management Code for OS/2
     
    4040        //oops, out of handles
    4141        dprintf(("USER32: HwAllocateWindowHandle OUT OF WINDOW HANDLES!!"));
     42        tableMutex.leave();
    4243        DebugInt3();
    43         tableMutex.leave();
    4444        return FALSE;
    4545  }
Note: See TracChangeset for help on using the changeset viewer.