Windows: Don't do SYSRQ hackery on WM_SYSKEYDOWN

This commit is contained in:
Elias Naur 2007-08-17 06:14:40 +00:00
parent c443696e24
commit 1c935179f3
1 changed files with 4 additions and 2 deletions

View File

@ -713,8 +713,8 @@ final class WindowsDisplay implements DisplayImplementation {
case WM_CHAR: case WM_CHAR:
handleChar(wParam, lParam, millis); handleChar(wParam, lParam, millis);
return true; return true;
case WM_SYSKEYDOWN: /* Fall through */ case WM_SYSKEYUP:
case WM_SYSKEYUP: /* Fall through */ /* Fall through */
case WM_KEYUP: case WM_KEYUP:
// SysRq apparently only generates WM_KEYUP, so we'll fake a WM_KEYDOWN // SysRq apparently only generates WM_KEYUP, so we'll fake a WM_KEYDOWN
if (wParam == WindowsKeycodes.VK_SNAPSHOT && keyboard != null && if (wParam == WindowsKeycodes.VK_SNAPSHOT && keyboard != null &&
@ -726,6 +726,8 @@ final class WindowsDisplay implements DisplayImplementation {
handleKeyButton(wParam, fake_lparam, millis); handleKeyButton(wParam, fake_lparam, millis);
} }
/* Fall through */ /* Fall through */
case WM_SYSKEYDOWN:
/* Fall through */
case WM_KEYDOWN: case WM_KEYDOWN:
handleKeyButton(wParam, lParam, millis); handleKeyButton(wParam, lParam, millis);
return false; return false;