in parse_kbinput(), interpret Cancel and Shift-Cancel
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4078 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
Этот коммит содержится в:
родитель
a31d54eebe
Коммит
6a8b350a0c
@ -1,5 +1,6 @@
|
||||
2007-04-18 David Lawrence Ramsey <pooka109@gmail.com>
|
||||
|
||||
* winio.c (parse_kbinput): Interpret Cancel and Shift-Cancel.
|
||||
* winio.c (get_escape_seq_kbinput): Add missing comments.
|
||||
|
||||
2007-04-17 David Lawrence Ramsey <pooka109@gmail.com>
|
||||
|
12
src/winio.c
12
src/winio.c
@ -558,6 +558,12 @@ int parse_kbinput(WINDOW *win, bool *meta_key, bool *func_key)
|
||||
retval = ERR;
|
||||
break;
|
||||
#endif
|
||||
#ifdef KEY_CANCEL
|
||||
/* Slang doesn't support KEY_CANCEL. */
|
||||
case KEY_CANCEL:
|
||||
retval = NANO_CANCEL_KEY;
|
||||
break;
|
||||
#endif
|
||||
#ifdef KEY_END
|
||||
/* HP-UX 10-11 doesn't support KEY_END. */
|
||||
case KEY_END:
|
||||
@ -571,6 +577,12 @@ int parse_kbinput(WINDOW *win, bool *meta_key, bool *func_key)
|
||||
retval = ERR;
|
||||
break;
|
||||
#endif
|
||||
#ifdef KEY_SCANCEL
|
||||
/* Slang doesn't support KEY_SCANCEL. */
|
||||
case KEY_SCANCEL:
|
||||
retval = NANO_CANCEL_KEY;
|
||||
break;
|
||||
#endif
|
||||
#ifdef KEY_SDC
|
||||
/* Slang doesn't support KEY_SDC. */
|
||||
case KEY_SDC:
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user