aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/sdl/events.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2009-12-04 19:57:33 +0000
committerJohannes Schickel2009-12-04 19:57:33 +0000
commitad94de73d880116b02aa658765e9b32583463c96 (patch)
treec213bde426f05f8ff5c34903b183fbf301899cec /backends/platform/sdl/events.cpp
parent01e12310ae134f429c9ba72fd776af6ccd654a04 (diff)
downloadscummvm-rg350-ad94de73d880116b02aa658765e9b32583463c96.tar.gz
scummvm-rg350-ad94de73d880116b02aa658765e9b32583463c96.tar.bz2
scummvm-rg350-ad94de73d880116b02aa658765e9b32583463c96.zip
Prevent SDL backend from eating up keypress events with Ctrl+Alt set.
svn-id: r46259
Diffstat (limited to 'backends/platform/sdl/events.cpp')
-rw-r--r--backends/platform/sdl/events.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/backends/platform/sdl/events.cpp b/backends/platform/sdl/events.cpp
index 4b36de8df0..5905d5f7ee 100644
--- a/backends/platform/sdl/events.cpp
+++ b/backends/platform/sdl/events.cpp
@@ -297,9 +297,8 @@ bool OSystem_SDL::handleKeyDown(SDL_Event &ev, Common::Event &event) {
// Ctrl-Alt-<key> will change the GFX mode
if ((b & (Common::KBD_CTRL|Common::KBD_ALT)) == (Common::KBD_CTRL|Common::KBD_ALT)) {
-
- handleScalerHotkeys(ev.key);
- return false;
+ if (handleScalerHotkeys(ev.key))
+ return false;
}
if (remapKey(ev, event))