From 34c7e84d4517ec6e69b85bd781a42d979edd5649 Mon Sep 17 00:00:00 2001 From: stephena Date: Wed, 15 Jun 2005 15:48:09 +0000 Subject: [PATCH] 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 --- stella/src/gui/ListWidget.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stella/src/gui/ListWidget.cxx b/stella/src/gui/ListWidget.cxx index 9b740277b..baf2b40b2 100644 --- a/stella/src/gui/ListWidget.cxx +++ b/stella/src/gui/ListWidget.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: 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).