[racket] Custom Keybindings - Editor Insert Poofed

From: Ray Racine (ray.racine at gmail.com)
Date: Sun Oct 28 02:30:27 EDT 2012

Yep, can confirm keybindings doing editor% sends are now working.

Thanks.

On Sat, Oct 27, 2012 at 11:34 PM, Matthew Flatt <mflatt at cs.utah.edu> wrote:

> Thanks for the example! I've pushed a repair.
>
> At Sat, 27 Oct 2012 20:56:03 -0500, Robby Findler wrote:
> > Okay, it looks like on-subwindow-char is not being called properly
> > anymore. Here's a small program that illustrates the problem. It
> > prints out the frame, but I think it should print out the
> > editor-canvas. This seems to be linux specific.
> >
> > #lang racket/gui
> >
> > (define f%
> >   (class frame%
> >     (define/override (on-subwindow-char receiver evt)
> >       (printf "receiver: ~s\n" receiver)
> >       #f)
> >     (super-new)))
> >
> > (define f (new f% [label ""] [width 400] [height 400]))
> > (define t (new text%))
> > (define ec (new editor-canvas% [parent f] [editor t]))
> > (send ec focus)
> > (send f show #t)
> >
> >
> > Robby
> > ____________________
> >   Racket Users list:
> >   http://lists.racket-lang.org/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20121028/4c54c566/attachment.html>

Posted on the users mailing list.