[racket] Augmenting return key behaviour

From: Gary Baumgartner (gfb at cs.toronto.edu)
Date: Sat Feb 11 23:37:01 EST 2012

I'm trying to augment the behaviour of ‹return› to `tabify-all' each time,
 to urge my [3rd-year] students to use when we find them forgetting to do so
 while they try to understand what they've written.

The following [as is or with the commented-out part instead] prevents the
 Interactions from evaluating after ‹return›: it just moves the caret down.
 What am I missing?

  #lang s-exp framework/keybinding-lang

  (keybinding
   "return"
   (λ (editor event)
     (send (send editor get-keymap) call-function "do-return" editor event #t)
     #;(send editor insert-return)))


Posted on the users mailing list.