PS/2: Actually mask off SysReq when it is released.
The previous code was missing a "~" make it possible for someone to press PrntScrn, and then later Alt+D to trigger KDL, which is obviously not the desired behavior. SYS_REQ_KEY only triggers when Alt+SysReq is pressed, so this was not as much of an issue without PrntScrn.
This commit is contained in:
parent
2280633335
commit
544e086e8f
@ -168,7 +168,7 @@ keyboard_handle_int(ps2_dev *dev)
|
||||
if (keyInfo.is_keydown)
|
||||
emergencyKeyStatus |= EMERGENCY_SYS_REQ;
|
||||
else
|
||||
emergencyKeyStatus &= EMERGENCY_SYS_REQ;
|
||||
emergencyKeyStatus &= ~EMERGENCY_SYS_REQ;
|
||||
} else if (emergencyKeyStatus > EMERGENCY_SYS_REQ
|
||||
&& debug_emergency_key_pressed(kUnshiftedKeymap[scancode])) {
|
||||
static const int kKeys[] = {LEFT_ALT_KEY, RIGHT_ALT_KEY, SYS_REQ_KEY};
|
||||
|
Loading…
Reference in New Issue
Block a user