From 207be541458da0282f4f99ae1d7151cf6e696aeb Mon Sep 17 00:00:00 2001 From: John Zaitseff Date: Thu, 25 Apr 2013 22:18:54 +1000 Subject: [PATCH] Default keys are now set by a locale string, not by macros --- src/intf.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/intf.h b/src/intf.h index 4afea70..54b0b01 100644 --- a/src/intf.h +++ b/src/intf.h @@ -622,10 +622,10 @@ extern int gettxchar (WINDOW *win, wint_t *restrict wch); way (including if the user made any changed, spaces were stripped or if emptyval was copied into buf[]). - If either KEY_DEFVAL1 or KEY_DEFVAL2 is pressed when the input line is - empty, the string pointed to by defaultval (if not NULL) is placed in - the buffer as if typed by the user. Editing is NOT terminated in this - case. + If a key matching any character in the string "input|DefaultValue" (by + default, "=;") is pressed when the input line is empty, the string + pointed to by defaultval (if not NULL) is placed in the buffer as if + typed by the user. Editing is NOT terminated in this case. If allowed is not NULL, only characters in that string are allowed to be entered into the input line. For example, if allowed points to