зеркало из https://github.com/mozilla/pjs.git
r=pedemont, sr=blizzard (platform specific) OS/2 only - only dispatch key event if there was a char - don't always set shift state to false
This commit is contained in:
Родитель
796a77795f
Коммит
30bb96a3b6
|
@ -2266,7 +2266,7 @@ PRBool nsWindow::OnKey( MPARAM mp1, MPARAM mp2)
|
|||
if ( !(fsFlags & KC_VIRTUALKEY) ||
|
||||
((fsFlags & KC_CHAR) && (pressEvent.keyCode == 0)) )
|
||||
{
|
||||
pressEvent.isShift = PR_FALSE;
|
||||
// pressEvent.isShift = PR_FALSE;
|
||||
pressEvent.keyCode = 0;
|
||||
}
|
||||
else if (usVKey == VK_SPACE)
|
||||
|
@ -2278,9 +2278,9 @@ PRBool nsWindow::OnKey( MPARAM mp1, MPARAM mp2)
|
|||
pressEvent.charCode = 0;
|
||||
}
|
||||
}
|
||||
rc = DispatchWindowEvent( &pressEvent);
|
||||
}
|
||||
|
||||
rc = DispatchWindowEvent( &pressEvent);
|
||||
NS_RELEASE( pressEvent.widget);
|
||||
return rc;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче