Re: [racket-users] Re: mouse selection on a text-field%

2016-04-09 Thread Robby Findler
On Sat, Apr 9, 2016 at 11:40 AM, FERREC Romain wrote: > Le 09/04/2016 15:44, Robby Findler a écrit : >> >> You could write a little loop to keep the functions in the keymap and >> remove all the keybindings and then add back in the bindings you >> wanted. That way you could avoid duplicating code?

Re: [racket-users] Re: mouse selection on a text-field%

2016-04-09 Thread Robby Findler
You could write a little loop to keep the functions in the keymap and remove all the keybindings and then add back in the bindings you wanted. That way you could avoid duplicating code? Robby On Sat, Apr 9, 2016 at 8:32 AM, mazert wrote: > Le 09/04/2016 15:15, Robby Findler a écrit : >> >> Does

Re: [racket-users] Re: mouse selection on a text-field%

2016-04-09 Thread Robby Findler
Does this code help? #lang racket/gui (require framework) (define f (new frame% [label "Select"] [width 300])) (define t (new text-field% [parent f] [label #f])) (define k (send (send t get-editor) get-keymap)) (send k chain-to-keymap