Handle non-character input events in READ-EXTENSION-KEY.
authorTaylor R Campbell <campbell@mumble.net>
Sun, 21 Mar 2010 16:09:45 +0000 (12:09 -0400)
committerTaylor R Campbell <campbell@mumble.net>
Sun, 21 Mar 2010 16:09:45 +0000 (12:09 -0400)
src/edwin/basic.scm

index cd7198049291c1c60b1b239b7278a77dbcb563f9..29ff11215d99e6b86523d717a00d3f38e1a121ae 100644 (file)
@@ -193,7 +193,12 @@ Turns a following A (or C-A) into a Control-Meta-A."
 (define (read-extension-key modifier)
   (if execute-extended-keys?
       (set-command-prompt-prefix!))
-  (let ((key (modifier (with-editor-interrupts-disabled keyboard-read))))
+  (let ((key
+         (modifier
+          (let ((input (with-editor-interrupts-disabled keyboard-read)))
+            (if (char? input)
+                input
+                (abort-current-command input))))))
     (if execute-extended-keys?
        (dispatch-on-key (current-comtabs) key)
        key)))