Skip to content
Snippets Groups Projects
Commit 2aaf4f36 authored by deuce's avatar deuce
Browse files

K_TABEXIT returns on both TAB and BACKTAB

parent 625e423a
Branches
Tags
No related merge requests found
......@@ -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 */
......
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment