зеркало из https://github.com/mozilla/gecko-dev.git
Additional work on conditionalized fiex for #7629. Fix problems with ctrl-keys not being dispatched.
This commit is contained in:
Родитель
0aa14968fa
Коммит
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
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
//
|
||||
|
|
Загрузка…
Ссылка в новой задаче