From d6f71e425d77ad07ca299a2f88d8f5f3d8d94d77 Mon Sep 17 00:00:00 2001 From: Taylor R Campbell Date: Sun, 21 Mar 2010 12:09:45 -0400 Subject: [PATCH] Handle non-character input events in READ-EXTENSION-KEY. --- src/edwin/basic.scm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/edwin/basic.scm b/src/edwin/basic.scm index cd7198049..29ff11215 100644 --- a/src/edwin/basic.scm +++ b/src/edwin/basic.scm @@ -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))) -- 2.25.1