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:
Augustin Cavalier 2020-02-20 13:22:23 -05:00
parent 2280633335
commit 544e086e8f

View File

@ -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};