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:
urchlay 2005-07-27 20:19:26 +00:00
parent d65ab5c62b
commit c82d50406d
1 changed files with 2 additions and 2 deletions

View File

@ -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;