projects
/
mit-scheme.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
08f05ab
)
Handle non-character input events in READ-EXTENSION-KEY.
author
Taylor R Campbell
<campbell@mumble.net>
Sun, 21 Mar 2010 16:09:45 +0000
(12:09 -0400)
committer
Taylor R Campbell
<campbell@mumble.net>
Sun, 21 Mar 2010 16:09:45 +0000
(12:09 -0400)
src/edwin/basic.scm
patch
|
blob
|
history
diff --git
a/src/edwin/basic.scm
b/src/edwin/basic.scm
index cd7198049291c1c60b1b239b7278a77dbcb563f9..29ff11215d99e6b86523d717a00d3f38e1a121ae 100644
(file)
--- 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)))