mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 10:35:28 +00:00
[I8042PRT]
- Do not treat all extended keys as power keys in HandlePowerKeys. Fixes WM_KEYDOWN not being send right after extended key has been pressed. See issue #3212 for more details. svn path=/trunk/; revision=54007
This commit is contained in:
parent
f64577c1ea
commit
bb7482a50b
1 changed files with 4 additions and 4 deletions
|
@ -279,10 +279,6 @@ HandlePowerKeys(
|
|||
if (!(InputData->Flags & KEY_E0))
|
||||
return FALSE;
|
||||
|
||||
if (InputData->Flags & KEY_BREAK)
|
||||
/* We already took care of the key press */
|
||||
return TRUE;
|
||||
|
||||
switch (InputData->MakeCode)
|
||||
{
|
||||
case KEYBOARD_POWER_CODE:
|
||||
|
@ -298,6 +294,10 @@ HandlePowerKeys(
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
if (InputData->Flags & KEY_BREAK)
|
||||
/* We already took care of the key press */
|
||||
return TRUE;
|
||||
|
||||
/* Our work can only be done at passive level, so use a workitem */
|
||||
DeviceExtension->NewCaps |= KeyPress;
|
||||
InterlockedExchange((PLONG)&DeviceExtension->LastPowerKey, KeyPress);
|
||||
|
|
Loading…
Reference in a new issue