]> git.wh0rd.org Git - nano.git/commitdiff
in parse_kbinput(), interpret Cancel and Shift-Cancel
authorDavid Lawrence Ramsey <pooka109@gmail.com>
Wed, 18 Apr 2007 14:06:34 +0000 (14:06 +0000)
committerDavid Lawrence Ramsey <pooka109@gmail.com>
Wed, 18 Apr 2007 14:06:34 +0000 (14:06 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_2_0_branch/nano@4078 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

ChangeLog
src/winio.c

index 3722111f61998005771639b7a086e1bcd5a6d4f9..05fad806dd887af00d9998e9d9a13f4510ab86a3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -13,6 +13,8 @@ CVS code -
        - Don't bother checking if num_matches is less than zero, as
          it's a size_t and hence unsigned. (DLR)
 - winio.c:
+  parse_kbinput()
+       - Interpret Cancel and Shift-Cancel. (DLR)
   get_escape_seq_kbinput()
        - Add missing comments. (DLR)
 - doc/syntax/asm.nanorc, doc/syntax/c.nanorc, doc/syntax/sh.nanorc:
index 5527557d02413d10bba3a6d154342ad867910636..7f64847652da3a882376d35caac70b2656a58a26 100644 (file)
@@ -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: