Changeset 18445


Ignore:
Timestamp:
Feb 12, 2002, 7:36:41 PM (23 years ago)
Author:
sandervl
Message:

PF: Fix for double enter keyboard messages

File:
1 edited

Legend:

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

    r18420 r18445  
    1 /* $Id: oslibmsgtranslate.cpp,v 1.81 2002-02-11 13:48:40 sandervl Exp $ */
     1/* $Id: oslibmsgtranslate.cpp,v 1.82 2002-02-12 18:36:41 sandervl Exp $ */
    22/*
    33 * Window message translation functions for OS/2
     
    4040#define DBG_LOCALLOG    DBG_oslibmsgtranslate
    4141#include "dbglocal.h"
    42 
    4342
    4443static BOOL fGenerateDoubleClick = FALSE;
     
    717716          if (flags & KC_KEYUP)
    718717          {
    719             // as in NT4 we will send currently fake WM_SYSKEYDOWN with
    720             // ALT key held
    721             // ?? fMsgRemoved care - it seems we can only push one message?             
    722             if(fMsgRemoved && !(teb->o.odin.fTranslated))
    723             {                   
    724 
    725               MSG extramsg;
    726               memcpy(&extramsg, winMsg, sizeof(MSG));
    727    
    728               extramsg.message = WINWM_SYSKEYUP;
    729               extramsg.lParam |= WIN_KEY_PREVSTATE;           
    730               extramsg.lParam |= WIN_KEY_ALTHELD;           
    731               extramsg.lParam |= 1 << 31;                              // bit 31, transition state, always 1 for WM_KEYUP
    732 
    733               // insert message into the queue
    734               setThreadQueueExtraCharMessage(teb, &extramsg);
    735               winMsg->message = WINWM_SYSKEYDOWN;
    736               winMsg->lParam |= WIN_KEY_ALTHELD;;
    737             }   
     718             //@@PF Note that without pmkbdhook there will not be correct message for Alt-Enter
     719              winMsg->message = WINWM_SYSKEYUP;
     720              winMsg->lParam |= WIN_KEY_PREVSTATE;           
     721              winMsg->lParam |= WIN_KEY_ALTHELD;           
     722              winMsg->lParam |= 1 << 31;                              // bit 31, transition state, always 1 for WM_KEYUP
    738723          }
    739724          else
Note: See TracChangeset for help on using the changeset viewer.