<div dir="ltr"><div><div><div><div>As I understand it, `add-text-keymap-funcions&#39; 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&#39;s procedure `keymap:get-editor&#39; which gives you default bindings.<br>

</div><br></div>Here is a working example:<br><a href="https://gist.github.com/Metaxal/5719809">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">

On Thu, Jun 6, 2013 at 6:30 AM, Matt Jadud <span dir="ltr">&lt;<a href="mailto:jadudm@gmail.com" target="_blank">jadudm@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr">Hi all,<div><br></div><div>I would like my text% to have copy/paste abilities. Actually, I&#39;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&#39;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>____________________<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>