From 016ec17076d15f33930446bad350088e9aa94659 Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Wed, 1 May 2002 20:21:10 +0000
Subject: [PATCH] Backspace key now moves backwards through menus.

---
 src/uifc/uifcc.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/uifc/uifcc.c b/src/uifc/uifcc.c
index 9466e727c6..45a904ecb2 100644
--- a/src/uifc/uifcc.c
+++ b/src/uifc/uifcc.c
@@ -613,6 +613,8 @@ int ulist(int mode, int left, int top, int width, int *cur, int *bar
 
 		if(inkey(1)) {
 			i=inkey(0);
+			if(i==KEY_BACKSPACE)
+				i=ESC;
 			if(i>255) {
 				s=0;
 				switch(i) {
@@ -1033,7 +1035,7 @@ int ulist(int mode, int left, int top, int width, int *cur, int *bar
 								FREE(sav[api->savnum].buf);
 								api->savdepth--; }
 							return(*cur);
-						case 03:
+						case 3:
 						case ESC:
 							if((mode&WIN_ESC || (mode&WIN_CHE && api->changes))
 								&& !(mode&WIN_SAV)) {
@@ -1439,7 +1441,7 @@ void bottomline(int line)
 		i+=4;
 		uprintf(i,api->scrn_len+1,BLACK|(cclr<<4),"Delete Item  ");
 		i+=13; }
-	uprintf(i,api->scrn_len+1,bclr|(cclr<<4),"ESC/^C ");
+	uprintf(i,api->scrn_len+1,bclr|(cclr<<4),"BACKSP ");
 	i+=7;
 	uprintf(i,api->scrn_len+1,BLACK|(cclr<<4),"Exit");
 	i+=4;
-- 
GitLab