<div dir="ltr">Hi Laurent,<div><br></div><div>Many thanks!</div><div><br></div><div style>The thing worth noting from a document management/improvement perspective: I have never seen the framework collection.</div><div style>
<br></div><div style>(Both are possible), but either:</div><div style><br></div><div style>1. I really missed something obvious somewhere, or</div><div style><br></div><div style>2. No search of mine in the docs ever turned up this very useful collection of tools.</div>
<div style><br></div><div style>If it is possible that #2 is more the case than #1, I'd like to offer a polite suggestion to the PLT team to make this information more obvious to users of the docs. I spend most of my time in racket/gui, and had no idea racket/framework had some Swiss army knives, if you will.</div>
<div style><br></div><div style>Cheers,</div><div style>Matt</div><div style><br></div><div style><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jun 6, 2013 at 3:13 AM, Laurent <span dir="ltr"><<a href="mailto:laurent.orseau@gmail.com" target="_blank">laurent.orseau@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>As I understand it, `add-text-keymap-funcions' makes these functions mappable, but does not give you the default mappings.<br>
<br></div><div>You can either add the keybindings yourself, or you can use the framework's procedure `keymap:get-editor' which gives you default bindings.<br>
</div><br></div>Here is a working example:<br><a href="https://gist.github.com/Metaxal/5719809" target="_blank">https://gist.github.com/Metaxal/5719809</a><br><br></div>HTH<br></div>Laurent<br></div><div class="gmail_extra">
<br><br><div class="gmail_quote"><div><div class="h5">
On Thu, Jun 6, 2013 at 6:30 AM, Matt Jadud <span dir="ltr"><<a href="mailto:jadudm@gmail.com" target="_blank">jadudm@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div class="h5">
<div dir="ltr">Hi all,<div><br></div><div>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?<br>
</div><div><br></div><div>I thought something like</div><div><br></div><div>(define text (new text%))<br></div><div><div>(define keymap (new keymap%))</div><div><br></div><div>(add-text-keymap-functions keymap)</div>
<div>(send text set-keymap keymap)</div><div><br></div><div>would be along the right lines, but no?</div><div><br></div><div>Pointers appreciated,</div><div>Matt</div></div></div>
<br></div></div>____________________<br>
Racket Users list:<br>
<a href="http://lists.racket-lang.org/users" target="_blank">http://lists.racket-lang.org/users</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>