made numberpad enter and control-enter and alt-enter all submit the current REPL interaction
svn: r15546
This commit is contained in:
parent
0c73b84692
commit
ba4fd47407
|
@ -959,9 +959,12 @@ TODO
|
||||||
(send context enable-evaluation))
|
(send context enable-evaluation))
|
||||||
|
|
||||||
(define/augment (submit-to-port? key)
|
(define/augment (submit-to-port? key)
|
||||||
(and prompt-position
|
(or (eq? (send key get-key-code) 'numpad-enter)
|
||||||
(only-whitespace-after-insertion-point)
|
(send key get-control-down)
|
||||||
(submit-predicate this prompt-position)))
|
(send key get-alt-down)
|
||||||
|
(and prompt-position
|
||||||
|
(only-whitespace-after-insertion-point)
|
||||||
|
(submit-predicate this prompt-position))))
|
||||||
|
|
||||||
(define/private (only-whitespace-after-insertion-point)
|
(define/private (only-whitespace-after-insertion-point)
|
||||||
(let ([start (get-start-position)]
|
(let ([start (get-start-position)]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user