mirror of https://github.com/stella-emu/stella.git
Revert "fix repeated ESC from debugger", there is a more fundamental problem
This reverts commit 1b5ac9d3b5
.
This commit is contained in:
parent
b3e582209f
commit
40615be9be
|
@ -618,21 +618,18 @@ void EventHandler::handleKeyEvent(StellaKey key, StellaMod mod, bool state)
|
|||
if(!(StellaModTest::isControl(mod) || StellaModTest::isShift(mod) || StellaModTest::isAlt(mod)))
|
||||
{
|
||||
// special handling for Escape key
|
||||
if(key == KBDK_ESCAPE)
|
||||
if(state && key == KBDK_ESCAPE)
|
||||
{
|
||||
if(state)
|
||||
if(myState == EventHandlerState::PAUSE)
|
||||
{
|
||||
if(myState == EventHandlerState::PAUSE)
|
||||
{
|
||||
setEventState(EventHandlerState::EMULATION);
|
||||
return;
|
||||
}
|
||||
else if(myState == EventHandlerState::CMDMENU ||
|
||||
myState == EventHandlerState::TIMEMACHINE)
|
||||
{
|
||||
leaveMenuMode();
|
||||
return;
|
||||
}
|
||||
setEventState(EventHandlerState::EMULATION);
|
||||
return;
|
||||
}
|
||||
else if(myState == EventHandlerState::CMDMENU ||
|
||||
myState == EventHandlerState::TIMEMACHINE)
|
||||
{
|
||||
leaveMenuMode();
|
||||
return;
|
||||
}
|
||||
else if(myState == EventHandlerState::DEBUGGER && myOSystem.debugger().canExit())
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue