summaryrefslogtreecommitdiff
path: root/gnu/lib/libdialog
diff options
context:
space:
mode:
authorJordan K. Hubbard <jkh@FreeBSD.org>1999-12-17 02:44:09 +0000
committerJordan K. Hubbard <jkh@FreeBSD.org>1999-12-17 02:44:09 +0000
commit9639dc68d7eda2406d2b958ec07e2163b247c23b (patch)
treea66bef6bf3022bc0c5150979750bb1de3ac80f89 /gnu/lib/libdialog
parentfb8e78a523f71e9aa34014d8f3722cbd941cf87e (diff)
Notes
Diffstat (limited to 'gnu/lib/libdialog')
-rw-r--r--gnu/lib/libdialog/checklist.c2
-rw-r--r--gnu/lib/libdialog/menubox.c2
-rw-r--r--gnu/lib/libdialog/radiolist.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/gnu/lib/libdialog/checklist.c b/gnu/lib/libdialog/checklist.c
index 5db04c789d3d..3476f7dd0722 100644
--- a/gnu/lib/libdialog/checklist.c
+++ b/gnu/lib/libdialog/checklist.c
@@ -255,7 +255,7 @@ draw:
/* Check if key pressed matches first character of any item tag in list */
for (i = 0; i < max_choice; i++)
- if (isprint(key) && key < 0x100 && toupper(key) == toupper(items[(scroll+i)*3][0]))
+ if (key != ' ' && key < 0x100 && toupper(key) == toupper(items[(scroll+i)*3][0]))
break;
if (i < max_choice || (key >= '1' && key <= MIN('9', '0'+max_choice)) ||
diff --git a/gnu/lib/libdialog/menubox.c b/gnu/lib/libdialog/menubox.c
index 77b82eed7ca3..061c3679c9ec 100644
--- a/gnu/lib/libdialog/menubox.c
+++ b/gnu/lib/libdialog/menubox.c
@@ -233,7 +233,7 @@ draw:
/* Check if key pressed matches first character of any item tag in menu */
for (i = 0; i < max_choice; i++)
- if (key < 0x100 && isprint(key) && toupper(key) == toupper(items[(scroll + i) * 2][0]))
+ if (key < 0x100 && key != ' ' && toupper(key) == toupper(items[(scroll + i) * 2][0]))
break;
if (i < max_choice || (key >= '1' && key <= MIN('9', '0'+max_choice)) || KEY_IS_UP(key) || KEY_IS_DOWN(key)) {
diff --git a/gnu/lib/libdialog/radiolist.c b/gnu/lib/libdialog/radiolist.c
index c1f5ce6566db..1dec89e5fb92 100644
--- a/gnu/lib/libdialog/radiolist.c
+++ b/gnu/lib/libdialog/radiolist.c
@@ -265,7 +265,7 @@ draw:
/* Check if key pressed matches first character of any item tag in list */
for (i = 0; i < max_choice; i++)
- if (isprint(key) && toupper(key) == toupper(items[(scroll + i) * 3][0]))
+ if (key != ' ' && toupper(key) == toupper(items[(scroll + i) * 3][0]))
break;
if (i < max_choice || (key >= '1' && key <= MIN('9', '0' + max_choice)) ||
KEY_IS_UP(key) || KEY_IS_DOWN(key) || key == ' ') {