Handle keys consistently.

This commit is contained in:
Eric Melville 2001-07-26 03:34:43 +00:00
parent 28b975bf3d
commit b48baf886a
2 changed files with 4 additions and 1 deletions

View File

@ -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;

View File

@ -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;