[racket] Custom Keybindings - Editor Insert Poofed

From: Ray Racine (ray.racine at gmail.com)
Date: Sat Oct 27 22:10:09 EDT 2012

Sounds like that is the problem.  As indicated I have work around with
using menu-bind, so nothing critical.  On a related topic is there a way to
"label" my custom keybindings.  Right now "Show active keybinds" from the
menu shows the line number in my keybindings file.

On Sat, Oct 27, 2012 at 9:56 PM, Robby Findler
<robby at eecs.northwestern.edu>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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20121027/8568869e/attachment.html>

Posted on the users mailing list.