Moved 'swallow backtick ket in debugger' logic out of PromptWidget and

into the parent dialog box (ie, the entire debugger window), since we
don't want to allow backtick to appear anywhere in the debugger, not
just the prompt.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@3295 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
stephena 2016-03-07 15:36:09 +00:00
parent f3fce85633
commit 3a5cdb2d5c
2 changed files with 6 additions and 6 deletions

View File

@ -80,7 +80,12 @@ void DebuggerDialog::loadConfig()
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
void DebuggerDialog::handleKeyDown(StellaKey key, StellaMod mod)
{
if(instance().eventHandler().kbdControl(mod))
if(key == KBDK_GRAVE && !instance().eventHandler().kbdShift(mod))
{
// Swallow backtick, so we don't see it when exiting the debugger
instance().eventHandler().enableTextEvents(false);
}
else if(instance().eventHandler().kbdControl(mod))
{
switch(key)
{

View File

@ -411,11 +411,6 @@ bool PromptWidget::handleKeyDown(StellaKey key, StellaMod mod)
dirty = true;
break;
case KBDK_GRAVE:
// Swallow backtick, so we don't see it when exiting the debugger
instance().eventHandler().enableTextEvents(false);
break;
default:
if (instance().eventHandler().kbdControl(mod))
{