[plt-scheme] vi mode and editor questions

From: Robby Findler (robby at cs.uchicago.edu)
Date: Sat Nov 22 21:17:23 EST 2008

On Sat, Nov 22, 2008 at 7:04 PM, Jon Rafkind <workmin at ccs.neu.edu> wrote:
> I don't see the difference between my code and yours except that I'm using
> whatever editor the definitions window uses.

I made a little tool (code below; I added a planet link and an info.ss
file so drscheme would find the tool), and I still see the same (ie,
good) behavior.


#lang scheme/gui
(require drscheme/tool)

(provide tool@)
(define tool@
    (import drscheme:tool^)
    (export drscheme:tool-exports^)

    (define phase1 void)
    (define phase2 void)

     (λ (t%)
       (class t%
         (define/override (on-char evt)
           (printf "key-code ~s control ~s\n"
                   (send evt get-key-code)
                   (send evt get-control-down))
           (super on-char evt))

Posted on the users mailing list.