aboutsummaryrefslogtreecommitdiff
path: root/common/EventMapper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'common/EventMapper.cpp')
-rw-r--r--common/EventMapper.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/EventMapper.cpp b/common/EventMapper.cpp
index 36feedf726..6a3a7e5be6 100644
--- a/common/EventMapper.cpp
+++ b/common/EventMapper.cpp
@@ -57,10 +57,10 @@ List<Event> DefaultEventMapper::mapEvent(const Event &ev, EventSource *source) {
mappedEvent.type = EVENT_MAINMENU;
}
#ifdef ENABLE_VKEYBD
- else if (ev.kbd.keycode == KEYCODE_F7 && ev.kbd.hasFlags(0)) {
+ else if (ev.kbd.hasFlags(KBD_CTRL) && ev.kbd.keycode == KEYCODE_F7) {
mappedEvent.type = EVENT_VIRTUAL_KEYBOARD;
- // Avoid blocking F7 events from engine.
+ // Avoid blocking CTRL-F7 events from engine.
addDelayedEvent(100, ev);
}
#endif