<div dir="ltr">Glad you could fix your issue.<div>For what it's worth, I had the same kinds of problems with my French keyboard, and eventually I took the more extreme option to switch to a custom dvorak-like layout. Not sure how you well keyboard layouts can be customised on Windows, but if you want a more permanent and global (system wide) solution, that's something to consider.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 19, 2015 at 7:56 PM, razo <span dir="ltr"><<a href="mailto:r.tiefenthal@gmx.de" target="_blank">r.tiefenthal@gmx.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div>Thank you very much Laurent, <br>
<br>
I have gotten the behaviour I wanted by using the builtin
functionality for keybindings (Edit/Keybindings/Add User-defined
keybindings). For me personally the issue is solved, but for
reference by whom it might concern (my english is awkward I think)
I might add:<br>
<br>
* If I click on the menu entry (Scripts/SCRIPTNAME SHORTCUT) and
SHORTCUT is equal to Ö or any other key I try without prefix I get
the behaviour I want, but when I press the key (ö) it inserts the
letter itself in the editor. This is with "(shortcut-prefix . ())"
in the .rktd file.<br>
* "Edit/Preferences/Editing/General/"Enable keybindings in menus":
The issue seems to persist, no matter if the option is on or off
(it was on before I read your comment).<br>
* For reference I might add the keybindings file I now use as is
via "Edit/Keybindings/Add User-defined keybindings", i.e. nothing
to with the plugin from Laurent. Basically I just wanted to insert
brackets etc. without having to press shift+8 etc. with my german
keyboard layout:<br>
<br>
-------<br>
#lang s-exp framework/keybinding-lang<br>
(keybinding "c:#" (λ (editor evt) (send editor insert "(define
")))<br>
(keybinding "c:#" (λ (editor evt) (send editor insert "(define
x")))<br>
(define cnt 0)<br>
(keybinding "c:u" (λ (editor evt) (send editor insert (format
"Count: ~a." cnt)) (set! cnt (add1 cnt))))<br>
(keybinding "c:+" (λ (ed evt) <br>
(define a (send ed get-start-position))<br>
(send ed move-sexp-out a)))<br>
(keybinding "ö"<br>
(λ (text evt)<br>
(define a (send text get-start-position))<br>
(define b (send text get-end-position))<br>
(send text insert #\( a)<br>
(send text insert #\) (+ b 1))<br>
(send text move-position 'left)))<br>
(keybinding "ä"<br>
(λ (text evt)<br>
(define a (send text get-start-position))<br>
(define b (send text get-end-position))<br>
(send text insert #\[ a)<br>
(send text insert #\] (+ b 1))<br>
(send text move-position 'left)))<br>
-------<br>
<br>
<br>
Am 19.02.2015 um 19:35 schrieb Laurent:<br>
</div><div><div class="h5">
<blockquote type="cite">
<div dir="ltr">
<div>The script plugin uses the menus to define the keybindings,
because each script is one entry in the menu. And I don't
think it's possible to enable keybindings in menus without
prefixes. If you use #f, it just uses the default prefix which
is Control. Not sure the following works without prefixes, but
maybe you can get the behaviour you want by defining your own
keybinding file:</div>
<div><a href="http://docs.racket-lang.org/drracket/Keyboard_Shortcuts.html?q=keybinding#%28part._defining-shortcuts%29" target="_blank">http://docs.racket-lang.org/drracket/Keyboard_Shortcuts.html?q=keybinding#%28part._defining-shortcuts%29</a><br>
</div>
<div><br>
</div>
<div>Also, having Edit/Preferences/Editing/General/"Enable
keybindings in menus" can make a difference in some cases.</div>
<div><br>
</div>
<div>Laurent</div>
<div><br>
</div>
<div><br>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Mon, Feb 16, 2015 at 8:48 PM, razo <span dir="ltr"><<a href="mailto:r.tiefenthal@gmx.de" target="_blank">r.tiefenthal@gmx.de</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>Am 16.02.2015 um 21:37 schrieb Jens Axel Søgaard:<br>
</span>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Do you happen to be on OS X?<span><br>
<br>
Which keyboard layout do you have?<br>
<br>
</span></blockquote>
Sorry, I forgot, I am on windows 7.
<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>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</div></div></div>
</blockquote></div><br></div>