From b0ba4b01a4fee3409768bdced4de6719b51297bc Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Thu, 13 Dec 2012 20:52:09 +0100 Subject: COMMON: Add wrapper for isprint. This is done in the spirit of 658080deeda79d20ea40643569fbcb072573e7cf. --- gui/widgets/list.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gui/widgets') diff --git a/gui/widgets/list.cpp b/gui/widgets/list.cpp index 13784ddf7f..95d39c4f24 100644 --- a/gui/widgets/list.cpp +++ b/gui/widgets/list.cpp @@ -284,7 +284,7 @@ bool ListWidget::handleKeyDown(Common::KeyState state) { bool dirty = false; int oldSelectedItem = _selectedItem; - if (!_editMode && state.keycode <= Common::KEYCODE_z && isprint((unsigned char)state.ascii)) { + if (!_editMode && state.keycode <= Common::KEYCODE_z && Common::isPrint(state.ascii)) { // Quick selection mode: Go to first list item starting with this key // (or a substring accumulated from the last couple key presses). // Only works in a useful fashion if the list entries are sorted. -- cgit v1.2.3