Allowed strings starting with numbers to be selected.

git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@501 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
stephena 2005-06-15 15:48:09 +00:00
parent a402ecad41
commit 34c7e84d45
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: ListWidget.cxx,v 1.16 2005-06-15 15:34:35 stephena Exp $
// $Id: ListWidget.cxx,v 1.17 2005-06-15 15:48:09 stephena Exp $
//
// Based on code from ScummVM - Scumm Interpreter
// Copyright (C) 2002-2004 The ScummVM project
@ -203,7 +203,7 @@ bool ListWidget::handleKeyDown(int ascii, int keycode, int modifiers)
bool dirty = false;
int oldSelectedItem = _selectedItem;
if (!_editMode && isalpha((char)ascii))
if (!_editMode && isalnum((char)ascii))
{
// Quick selection mode: Go to first list item starting with this key
// (or a substring accumulated from the last couple key presses).