From 2aaf4f360e68c9d9ba8ecf685a07b34b095bbd8b Mon Sep 17 00:00:00 2001
From: deuce <>
Date: Sat, 4 Jun 2005 02:09:02 +0000
Subject: [PATCH] K_TABEXIT returns on both TAB and BACKTAB

---
 src/uifc/uifc.h   | 2 +-
 src/uifc/uifc32.c | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/uifc/uifc.h b/src/uifc/uifc.h
index 07d3768d2d..a0c9ec6e32 100644
--- a/src/uifc/uifc.h
+++ b/src/uifc/uifc.h
@@ -211,7 +211,7 @@
 #define K_NOCRLF	(1L<<9) 	/* Don't print CRLF after string input      */
 #define K_ALPHA 	(1L<<10)	/* Only allow alphabetic characters 		*/
 #define K_SCANNING	(1L<<11)	/* UPC Scanner is active... return on '%'	*/
-#define K_TABEXIT	(1L<<12)	/* Return on TAB					    	*/
+#define K_TABEXIT	(1L<<12)	/* Return on TAB or BACKTAB			    	*/
 #define K_DECIMAL	(1L<<13)	/* Allow floating point numbers only		*/
 #define K_DEUCEEXIT	(1L<<13)	/* Return whenever Deuce wants to exit		*/
 								/* Define this behaviour better - ToDo		*/
diff --git a/src/uifc/uifc32.c b/src/uifc/uifc32.c
index b90c8e7bd3..6d13a266d2 100644
--- a/src/uifc/uifc32.c
+++ b/src/uifc/uifc32.c
@@ -1910,7 +1910,8 @@ int ugetstr(int left, int top, int width, char *outstr, int max, long mode, int
 					}
 				case CR:
 					break;
-				case '\t':	/* '%' indicates that a UPC is coming next */
+				case 3840:	/* Backtab */
+				case '\t':
 					if(mode&K_TABEXIT)
 						ch=CR;
 					break;
-- 
GitLab