From 927a8cfd68f8f3f25d261a76068754467bb10374 Mon Sep 17 00:00:00 2001 From: stephena Date: Mon, 29 May 2006 22:31:20 +0000 Subject: [PATCH] Possibly fix a bug where 'Alt-x' key combos aren't being passed to the underlying Debugger widgets. This is needed for some keyboard layouts where normal characters are input using Alt key combinations. git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1108 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba --- stella/src/debugger/gui/DebuggerDialog.cxx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/stella/src/debugger/gui/DebuggerDialog.cxx b/stella/src/debugger/gui/DebuggerDialog.cxx index 12c4aa4b9..ebfb575fd 100644 --- a/stella/src/debugger/gui/DebuggerDialog.cxx +++ b/stella/src/debugger/gui/DebuggerDialog.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: DebuggerDialog.cxx,v 1.14 2006-05-04 17:45:24 stephena Exp $ +// $Id: DebuggerDialog.cxx,v 1.15 2006-05-29 22:31:20 stephena Exp $ // // Based on code from ScummVM - Scumm Interpreter // Copyright (C) 2002-2004 The ScummVM project @@ -84,8 +84,8 @@ void DebuggerDialog::loadConfig() // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - void DebuggerDialog::handleKeyDown(int ascii, int keycode, int modifiers) { - // Doing this means we disallow 'Alt xxx' events to any widget in the tabset - if(instance()->eventHandler().kbdAlt(modifiers)) + bool handled = instance()->eventHandler().kbdAlt(modifiers); + if(handled) { switch(ascii) { @@ -101,9 +101,12 @@ void DebuggerDialog::handleKeyDown(int ascii, int keycode, int modifiers) case 'l': doScanlineAdvance(); break; + default: + handled = false; + break; } } - else + if(!handled) Dialog::handleKeyDown(ascii, keycode, modifiers); }