summaryrefslogtreecommitdiffstats
path: root/gnu/lib/libdialog
diff options
context:
space:
mode:
authoreric <eric@FreeBSD.org>2001-07-26 03:34:43 +0000
committereric <eric@FreeBSD.org>2001-07-26 03:34:43 +0000
commita034475efbf5c480b0fe78b270efaf03f1c4c361 (patch)
tree5bdfeb1ad322a31233126f5e4281339a43f4834f /gnu/lib/libdialog
parentb178a161082bdcf74f6c5fb76e79d8a1b3daf85c (diff)
downloadFreeBSD-src-a034475efbf5c480b0fe78b270efaf03f1c4c361.zip
FreeBSD-src-a034475efbf5c480b0fe78b270efaf03f1c4c361.tar.gz
Handle keys consistently.
Diffstat (limited to 'gnu/lib/libdialog')
-rw-r--r--gnu/lib/libdialog/textbox.c3
-rw-r--r--gnu/lib/libdialog/tree.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/gnu/lib/libdialog/textbox.c b/gnu/lib/libdialog/textbox.c
index a617ac8..bfbf81b 100644
--- a/gnu/lib/libdialog/textbox.c
+++ b/gnu/lib/libdialog/textbox.c
@@ -291,7 +291,8 @@ int dialog_textbox(unsigned char *title, unsigned char *file, int height, int wi
wrefresh(dialog);
}
break;
- case ' ': /* Next page */
+ case 'F': /* Next page */
+ case 'f':
case KEY_NPAGE:
if (!end_reached) {
begin_reached = 0;
diff --git a/gnu/lib/libdialog/tree.c b/gnu/lib/libdialog/tree.c
index f40fb15..031c05b 100644
--- a/gnu/lib/libdialog/tree.c
+++ b/gnu/lib/libdialog/tree.c
@@ -383,6 +383,7 @@ int dialog_treemenu(unsigned char *title, unsigned char *prompt,
switch (key) {
case KEY_PPAGE:
+ case 'B' :
case 'b' :
if (scroll > menu_height) { /* can we go up? */
scroll -= (menu_height);
@@ -392,6 +393,7 @@ int dialog_treemenu(unsigned char *title, unsigned char *prompt,
redraw_menu = TRUE;
break;
case KEY_NPAGE:
+ case 'F' :
case 'f' :
if (scroll + menu_height >= item_no-1 - menu_height) { /* can we go down a full page? */
scroll = item_no - menu_height;
OpenPOWER on IntegriCloud