r=mkaply, a=brendan
OS/2 bring up - Trap when typing in URL bar
This commit is contained in:
mkaply%us.ibm.com 2000-06-20 13:24:52 +00:00
parent c8e8241728
commit 37a3743cdd
2 changed files with 22 additions and 18 deletions

View File

@ -2385,6 +2385,8 @@ PRUint32 WMChar2KeyCode( MPARAM mp1, MPARAM mp2)
if( !(flags & (KC_VIRTUALKEY | KC_DEADKEY)))
{
rc = SHORT1FROMMP(mp2);
if( rc < 0xFF)
{
// Need nls-correct way of doing this...
if( isalnum( rc))
rc = toupper( rc); // no lower case
@ -2406,6 +2408,7 @@ PRUint32 WMChar2KeyCode( MPARAM mp1, MPARAM mp2)
case '\'': rc = NS_VK_QUOTE; break;
}
}
}
else if( flags & KC_VIRTUALKEY)
{
USHORT vk = SHORT2FROMMP( mp2);

View File

@ -149,6 +149,7 @@ class nsWindow : public nsBaseWidget,
USHORT GetNextCmdID() { return mNextCmdID++; }
void NS2PM_PARENT( POINTL &ptl);
void NS2PM( POINTL &ptl);
void NS2PM( RECTL &rcl);
// void SetContextMenu( nsContextMenu *aMenu);
protected: