commit 3714e07d7bdd240413ee70922f017014db6a79c3
parent 7b0531aa0b0a89cdba9351973351c4ad4afb953b
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date: Mon, 31 Jul 2006 18:25:25 +0000
in parse_kbinput(), translate KEY_EVENT to ERR if we get it, so that
it's properly ignored
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3829 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
Diffstat:
2 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
@@ -169,6 +169,8 @@ CVS code -
- If they're defined, translate KEY_SUP into NANO_PREVLINE_KEY
and KEY_SDOWN into NANO_NEXTLINE_KEY, since they are sometimes
generated by Shift-Up and Shift-Down. (DLR)
+ - Translate KEY_EVENT to ERR if we get it, so that it's properly
+ ignored. (DLR)
parse_escape_seq_kbinput()
- Handle unknown and unignored escape sequences once here
instead of twice in parse_kbinput(). (DLR)
diff --git a/src/winio.c b/src/winio.c
@@ -651,6 +651,12 @@ int parse_kbinput(WINDOW *win, bool *meta_key, bool *func_key)
retval = ERR;
break;
#endif
+#ifdef KEY_EVENT
+ /* Slang doesn't support KEY_EVENT. */
+ case KEY_EVENT:
+ retval = ERR;
+ break;
+#endif
}
/* If our result is an extended keypad value (i.e. a value