Ignore:
Timestamp:
Oct 31, 2009, 8:56:51 PM (16 years ago)
Author:
vladest
Message:
  1. Remove setting up Windows codepage for ODIN PM session. This is incorrect. Fixed umlaut problem
  2. Textinput improves. Attempt to add deadchars support
File:
1 edited

Legend:

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

    r21345 r21347  
    152152// We make sure PM is up and running for our purposes and init the existing
    153153// thread 0.
    154 //******************************************************************************
     154//******************************************************************************
    155155BOOL InitPM()
    156156{
     
    198198    hookInit(hab);
    199199
    200     BOOL rc = WinSetCp(hmq, GetDisplayCodepage());
    201     dprintf(("InitPM: WinSetCP was %sOK", rc ? "" : "not "));
     200    //BOOL rc = WinSetCp(hmq, GetDisplayCodepage());
     201    //dprintf(("InitPM: WinSetCP was %s OK", rc ? " " : "not "));
    202202
    203203    /* IM instace is created per message queue, that is, thread */
     
    935935         */
    936936        if (WINWM_KEYDOWN == pWinMsg->message &&
    937             (SHORT1FROMMP(mp1) & KC_CHAR) &&
    938             ((pWinMsg->wParam >= 0x30 && pWinMsg->wParam <= 0x5A) ||
    939             pWinMsg->wParam == 0x20))
     937            (((SHORT1FROMMP(mp1) & KC_CHAR) &&
     938             !(SHORT1FROMMP(mp1) & KC_VIRTUALKEY)) ||
     939            (SHORT1FROMMP(mp1) & KC_DEADKEY)))
    940940        {
    941941            MSG extramsg;
     
    943943            extramsg.message = WINWM_CHAR;
    944944            extramsg.wParam = (ULONG)mp2;
     945            if(SHORT1FROMMP(mp1) & KC_DEADKEY)
     946            {
     947                extramsg.message++;  //WM_DEADCHAR/WM_SYSDEADCHAR
     948            }
     949           
    945950            win32wnd->MsgChar(&extramsg);
    946951        }
Note: See TracChangeset for help on using the changeset viewer.