Additional work on conditionalized fiex for #7629. Fix problems with ctrl-keys not being dispatched.

This commit is contained in:
tague%netscape.com 1999-06-10 21:38:05 +00:00
Родитель 0aa14968fa
Коммит 39f7f55a63
1 изменённых файлов: 13 добавлений и 1 удалений

Просмотреть файл

@ -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
//-------------------------------------------------------------------------
//