[racket] key event problem

From: Pierpaolo Bernardi (olopierpa at gmail.com)
Date: Wed Apr 18 06:48:42 EDT 2012

On Wed, Apr 18, 2012 at 12:32, Pierpaolo Bernardi <olopierpa at gmail.com> wrote:

> maybe:
>
> (define (edit e k)
>  (cond ((key=? "right" k)
>         (if (zero? (string-length (editor-post e)))
>           e
>           <create an updated new editor>))
>        ((key=? "left" k)
>         (if (zero? (string-length (editor-pre e)))
>           e
>           <create an updated new editor>))
>        ...
>        ))
>
> ?

oops, no, disregard this advice. The problem is not what it looked at
first to me.


Posted on the users mailing list.