mirror of https://github.com/stella-emu/stella.git
Don't switch away from the debugger if someone presses the ` key with
a modifier (such as Shift). This allows us to actually type a ~ character in the debugger (our unary NOT operator!). git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@695 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
parent
d65ab5c62b
commit
c82d50406d
|
@ -13,7 +13,7 @@
|
|||
// See the file "license" for information on usage and redistribution of
|
||||
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
|
||||
//
|
||||
// $Id: EventHandler.cxx,v 1.81 2005-07-21 12:56:26 stephena Exp $
|
||||
// $Id: EventHandler.cxx,v 1.82 2005-07-27 20:19:26 urchlay Exp $
|
||||
//============================================================================
|
||||
|
||||
#include <algorithm>
|
||||
|
@ -654,7 +654,7 @@ void EventHandler::handleKeyEvent(int unicode, SDLKey key, SDLMod mod, uInt8 sta
|
|||
break;
|
||||
|
||||
case S_DEBUGGER:
|
||||
if(myKeyTable[key] == Event::DebuggerMode && state == 1)
|
||||
if(myKeyTable[key] == Event::DebuggerMode && mod == 0 && state == 1)
|
||||
{
|
||||
leaveDebugMode();
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue