[Scummvm-git-logs] scummvm master -> 51fd8ede7bdaf4e87a88b163a3316df68c52983e
bluegr
noreply at scummvm.org
Sun Dec 31 16:17:25 UTC 2023
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
51fd8ede7b CGE: Make ALT+X trigger quit() only on initial keypress
Commit: 51fd8ede7bdaf4e87a88b163a3316df68c52983e
https://github.com/scummvm/scummvm/commit/51fd8ede7bdaf4e87a88b163a3316df68c52983e
Author: fusefib (55459980+fusefib at users.noreply.github.com)
Date: 2023-12-31T18:17:22+02:00
Commit Message:
CGE: Make ALT+X trigger quit() only on initial keypress
Changed paths:
engines/cge/events.cpp
diff --git a/engines/cge/events.cpp b/engines/cge/events.cpp
index d1a946c5390..a00b5475c2e 100644
--- a/engines/cge/events.cpp
+++ b/engines/cge/events.cpp
@@ -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;
}
More information about the Scummvm-git-logs
mailing list