diff options
author | Johannes Schickel | 2012-12-13 20:52:09 +0100 |
---|---|---|
committer | Johannes Schickel | 2012-12-13 21:08:47 +0100 |
commit | b0ba4b01a4fee3409768bdced4de6719b51297bc (patch) | |
tree | 6ad91afdcee1804f54f911b4abafbac4d51ad3b6 /gui/widgets | |
parent | 7319ccd84f6facbaa3875d1adc31f26cea94d223 (diff) | |
download | scummvm-rg350-b0ba4b01a4fee3409768bdced4de6719b51297bc.tar.gz scummvm-rg350-b0ba4b01a4fee3409768bdced4de6719b51297bc.tar.bz2 scummvm-rg350-b0ba4b01a4fee3409768bdced4de6719b51297bc.zip |
COMMON: Add wrapper for isprint.
This is done in the spirit of 658080deeda79d20ea40643569fbcb072573e7cf.
Diffstat (limited to 'gui/widgets')
-rw-r--r-- | gui/widgets/list.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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. |