prevent exiting command dialog with toggle key when using minimal UI

This commit is contained in:
thrust26 2019-05-03 19:34:39 +02:00
parent 1ad61ea117
commit 24602b4f53
1 changed files with 3 additions and 1 deletions

View File

@ -664,7 +664,9 @@ bool EventHandler::changeStateByEvent(Event::Type type)
case Event::CmdMenuMode:
if(myState == EventHandlerState::EMULATION || myState == EventHandlerState::PAUSE)
enterMenuMode(EventHandlerState::CMDMENU);
else if(myState == EventHandlerState::CMDMENU)
else if(myState == EventHandlerState::CMDMENU && !myOSystem.settings().getBool("minimal_ui"))
// The extra check for "minimal_ui" allows mapping e.g. right joystick fire
// to open the command dialog and navigate there using that fire button
leaveMenuMode();
else
handled = false;