Windows: Don't do SYSRQ hackery on WM_SYSKEYDOWN
This commit is contained in:
parent
c443696e24
commit
1c935179f3
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue