[racket] text%, keymap%, copy/paste question

From: Matt Jadud (jadudm at gmail.com)
Date: Thu Jun 6 00:30:40 EDT 2013

Hi all,

I would like my text% to have copy/paste abilities. Actually, I'd settle
for a user being able to copy out of a text% object. I was under the
impression that I could use set-keymap and add-text-keymap-functions to get
me there, but I'm not having much luck. What is the right/better approach?

I thought something like

(define text (new text%))
(define keymap (new keymap%))

(add-text-keymap-functions keymap)
(send text set-keymap keymap)

would be along the right lines, but no?

Pointers appreciated,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20130606/953c709f/attachment.html>

Posted on the users mailing list.