Ignore:
Timestamp:
Mar 23, 2004, 5:50:08 PM (21 years ago)
Author:
sandervl
Message:

OSLibWinTranslateMessage: removed some strange numpad related hacks that caused problems for VK_DECIMAL processing

File:
1 edited

Legend:

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

    r10505 r10554  
    1 /* $Id: oslibmsgtranslate.cpp,v 1.121 2004-03-11 13:42:00 sandervl Exp $ */
     1/* $Id: oslibmsgtranslate.cpp,v 1.122 2004-03-23 16:50:08 sandervl Exp $ */
    22/*
    33 * Window message translation functions for OS/2
     
    11551155      if(!(fl & KC_CHAR) && msg->message < WINWM_SYSKEYDOWN)
    11561156      {
    1157         return FALSE;
     1157         return FALSE;
    11581158      }
    11591159
     
    11631163      if((fl & (KC_VIRTUALKEY|KC_COMPOSITE)) == KC_VIRTUALKEY)
    11641164      {
    1165         if(msg->wParam)
    1166         {
    1167           if ((msg->wParam >= VK_NUMPAD0_W) &&
    1168               (msg->wParam <= VK_NUMPAD9_W))
    1169             extramsg.wParam = msg->wParam - 0x30;
    1170           else
    1171            if (msg->wParam == VK_DECIMAL_W)
    1172              extramsg.wParam = VK_DELETE_W;
    1173            else
    1174              /* PM Sends Bogus Things when pressing Shift+NUMAsterisk */
    1175              if (msg->wParam != VK_MULTIPLY_W)
    1176                 extramsg.wParam = msg->wParam;
    1177         }
    1178         else
    1179           extramsg.wParam = SHORT2FROMMP(teb->o.odin.os2msg.mp2);
     1165        if(!msg->wParam)
     1166        {//TODO: Why is this here????
     1167            DebugInt3();
     1168            extramsg.wParam = SHORT2FROMMP(teb->o.odin.os2msg.mp2);
     1169        }
    11801170      }
    1181 
    11821171
    11831172      //After SetFocus(0), all keystrokes are converted in WM_SYS*
Note: See TracChangeset for help on using the changeset viewer.