KEYMAPPER: Change hotkey from F8 to CTRL-F8 to reduce game conflicts.

This commit is contained in:
D G Turner 2014-04-27 04:17:36 +01:00
parent 8cf41943f6
commit b7192731b9
2 changed files with 3 additions and 3 deletions

2
README
View File

@ -1269,7 +1269,7 @@ other games.
Alt-Enter - Toggles full screen/windowed
Alt-s - Make a screenshot (SDL backend only)
Ctrl-F7 - Open virtual keyboard (if enabled)
F8 - Open key remapper dialog (if enabled)
Ctrl-F8 - Open key remapper dialog (if enabled)
SCUMM:
Ctrl 0-9 and Alt 0-9 - Load and save game state

View File

@ -65,10 +65,10 @@ List<Event> DefaultEventMapper::mapEvent(const Event &ev, EventSource *source) {
}
#endif
#ifdef ENABLE_KEYMAPPER
else if (ev.kbd.keycode == KEYCODE_F8 && ev.kbd.hasFlags(0)) {
else if (ev.kbd.hasFlags(KBD_CTRL) && ev.kbd.keycode == KEYCODE_F8) {
mappedEvent.type = EVENT_KEYMAPPER_REMAP;
// Avoid blocking F8 events from engine.
// Avoid blocking CTRL-F8 events from engine.
addDelayedEvent(100, ev);
}
#endif