diff options
Diffstat (limited to 'gui/newgui.cpp')
-rw-r--r-- | gui/newgui.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gui/newgui.cpp b/gui/newgui.cpp index 4afc59367b..a3eaee1622 100644 --- a/gui/newgui.cpp +++ b/gui/newgui.cpp @@ -237,7 +237,10 @@ void NewGui::runLoop() { } Common::EventManager *eventMan = _system->getEventManager(); + +#ifdef ENABLE_KEYMAPPER eventMan->getKeymapper()->pushKeymap("gui"); +#endif while (!_dialogStack.empty() && activeDialog == getTopDialog()) { if (_needRedraw) { redraw(); @@ -329,7 +332,9 @@ void NewGui::runLoop() { // Delay for a moment _system->delayMillis(10); } +#ifdef ENABLE_KEYMAPPER eventMan->getKeymapper()->popKeymap(); +#endif // HACK: since we reopen all dialogs anyway on redraw // we for now use Theme::closeAllDialogs here, until |