Made sure ListWidget can take advantage of the new line editing

functions in EditableWidget.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@817 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
stephena 2005-10-09 20:49:57 +00:00
parent 7ec2daa9f1
commit 446c2cdd7d
1 changed files with 3 additions and 4 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: ListWidget.cxx,v 1.35 2005-09-30 22:12:18 stephena Exp $
// $Id: ListWidget.cxx,v 1.36 2005-10-09 20:49:57 stephena Exp $
//
// Based on code from ScummVM - Scumm Interpreter
// Copyright (C) 2002-2004 The ScummVM project
@ -219,9 +219,8 @@ static bool matchingCharsIgnoringCase(string s, string pattern)
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
bool ListWidget::handleKeyDown(int ascii, int keycode, int modifiers)
{
// Ignore all mod keys
if(instance()->eventHandler().kbdControl(modifiers) ||
instance()->eventHandler().kbdAlt(modifiers))
// Ignore all Alt-mod keys
if(instance()->eventHandler().kbdAlt(modifiers))
return true;
bool handled = true;