mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-14 13:55:43 +00:00
Additional work on conditionalized fiex for #7629. Fix problems with ctrl-keys not being dispatched.
This commit is contained in:
parent
0aa14968fa
commit
39f7f55a63
@ -2016,6 +2016,18 @@ BOOL TranslateToAscii(BYTE *aKeyState,
|
||||
//
|
||||
//
|
||||
//-------------------------------------------------------------------------
|
||||
#ifdef tague_keyboard_patch
|
||||
BOOL nsWindow::OnKeyDown( UINT aVirtualKeyCode, UINT aScanCode)
|
||||
{
|
||||
WORD asciiKey;
|
||||
|
||||
asciiKey = 0;
|
||||
DispatchKeyEvent(NS_KEY_DOWN, asciiKey, aVirtualKeyCode);
|
||||
|
||||
// always let the def proc process a WM_KEYDOWN
|
||||
return FALSE;
|
||||
}
|
||||
#else
|
||||
BOOL nsWindow::OnKeyDown( UINT aVirtualKeyCode, UINT aScanCode)
|
||||
{
|
||||
WORD asciiKey;
|
||||
@ -2048,7 +2060,7 @@ BOOL nsWindow::OnKeyDown( UINT aVirtualKeyCode, UINT aScanCode)
|
||||
// always let the def proc process a WM_KEYDOWN
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user