CGE: Make ALT+X trigger quit() only on initial keypress

This commit is contained in:
fusefib 2023-12-31 15:11:47 +02:00 committed by Filippos Karapetis
parent 6d0147f13e
commit 51fd8ede7b

View File

@ -72,7 +72,7 @@ bool Keyboard::getKey(Common::Event &event) {
_vm->loadGameDialog();
return false;
case Common::KEYCODE_x:
if (event.kbd.flags & Common::KBD_ALT) {
if (event.type == Common::EVENT_KEYDOWN && (event.kbd.flags & Common::KBD_ALT)) {
_vm->quit();
return false;
}