From c82d50406d2f6242146b55ac4fab0fc1b17021d9 Mon Sep 17 00:00:00 2001 From: urchlay Date: Wed, 27 Jul 2005 20:19:26 +0000 Subject: [PATCH] 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 --- stella/src/emucore/EventHandler.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stella/src/emucore/EventHandler.cxx b/stella/src/emucore/EventHandler.cxx index 8c6ae81fe..288d5eaff 100644 --- a/stella/src/emucore/EventHandler.cxx +++ b/stella/src/emucore/EventHandler.cxx @@ -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 @@ -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;