From a41cc0c3c09a8075696fefe59eba0098e6642a55 Mon Sep 17 00:00:00 2001 From: Matthew Flatt Date: Sun, 28 Sep 2014 08:26:39 -0600 Subject: [PATCH] DrRacket: drop numpad Enter treatment as force-evaluation DrRacket's interactions window tried to treat numpad Enter the same as ctl-Return: send input to the reader, even if an S-expression is incomplete. Since numpad Enter events were not reported as 'numpad-enter, however, the special treatment didn't take effect. Meanwhile, it appears that some keyboard configurations report a numpad Enter event when NumLock is on and the regular Enter key is pressed, and that's probably not what a user wants. And numpad Enter has never been reported differently from regular Enter on Windows. So, it's simpler and more consistent to just treat numpad Enter and regular Enter the same. --- pkgs/drracket-pkgs/drracket/drracket/private/rep.rkt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkgs/drracket-pkgs/drracket/drracket/private/rep.rkt b/pkgs/drracket-pkgs/drracket/drracket/private/rep.rkt index a088b16c2a..e12a69fc42 100644 --- a/pkgs/drracket-pkgs/drracket/drracket/private/rep.rkt +++ b/pkgs/drracket-pkgs/drracket/drracket/private/rep.rkt @@ -955,8 +955,7 @@ TODO (send context enable-evaluation)) (define/augment (submit-to-port? key) - (or (eq? (send key get-key-code) 'numpad-enter) - (send key get-control-down) + (or (send key get-control-down) (send key get-alt-down) (and prompt-position (let ([lang (drracket:language-configuration:language-settings-language user-language-settings)])