mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-13 23:43:34 +00:00
CGE: Make ALT+X trigger quit() only on initial keypress
This commit is contained in:
parent
6d0147f13e
commit
51fd8ede7b
@ -72,7 +72,7 @@ bool Keyboard::getKey(Common::Event &event) {
|
|||||||
_vm->loadGameDialog();
|
_vm->loadGameDialog();
|
||||||
return false;
|
return false;
|
||||||
case Common::KEYCODE_x:
|
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();
|
_vm->quit();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user