From: Benno Schulenberg Date: Mon, 4 Jan 2016 19:42:37 +0000 (+0000) Subject: Making "Tab" produce the appropriate keycode. X-Git-Tag: v2.5.1~9 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=9962e3b65c3013c017817bdbd89424529c2aa27b;p=nano.git Making "Tab" produce the appropriate keycode. This fixes Savannah bug #46812. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5535 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/ChangeLog b/ChangeLog index 8a9b30ef..bd605b54 100644 --- a/ChangeLog +++ b/ChangeLog @@ -6,6 +6,8 @@ * src/nano.c (allow_sigwinch): Improve its name and its comments. * src/global.c (shortcut_init): Add "Tab" as key description. * src/text.c (do_linter): Gettextize a forgotten string. + * src/global.c (assign_keyinfo): Make "Tab" produce the appropriate + keycode. This fixes Savannah bug #46812 reported by Cody A. Taylor. 2016-01-04 Mike Frysinger * src/global.c (strtosc, strtomenu): Constify the input parameter. diff --git a/src/global.c b/src/global.c index cba27a0c..3e023039 100644 --- a/src/global.c +++ b/src/global.c @@ -441,6 +441,8 @@ void assign_keyinfo(sc *s) s->seq = KEY_DC; else if (!strcasecmp(s->keystr, "Bsp")) s->seq = KEY_BACKSPACE; + else if (!strcasecmp(s->keystr, "Tab")) + s->seq = 9; else if (!strcasecmp(s->keystr, "Enter")) s->seq = KEY_ENTER; else if (!strcasecmp(s->keystr, "PgUp"))