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:
|
||||
handleChar(wParam, lParam, millis);
|
||||
return true;
|
||||
case WM_SYSKEYDOWN: /* Fall through */
|
||||
case WM_SYSKEYUP: /* Fall through */
|
||||
case WM_SYSKEYUP:
|
||||
/* Fall through */
|
||||
case WM_KEYUP:
|
||||
// SysRq apparently only generates WM_KEYUP, so we'll fake a WM_KEYDOWN
|
||||
if (wParam == WindowsKeycodes.VK_SNAPSHOT && keyboard != null &&
|
||||
|
@ -726,6 +726,8 @@ final class WindowsDisplay implements DisplayImplementation {
|
|||
handleKeyButton(wParam, fake_lparam, millis);
|
||||
}
|
||||
/* Fall through */
|
||||
case WM_SYSKEYDOWN:
|
||||
/* Fall through */
|
||||
case WM_KEYDOWN:
|
||||
handleKeyButton(wParam, lParam, millis);
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue