<div dir="ltr"><div style>I have my Racket configured per the "emacs" section in DrRacket, so keybindings in menus is unchecked.</div><div style><br></div><div style><span style="color:rgb(0,0,0);font-family:serif;font-size:medium">"If you are most familiar with Emacs-style key bindings (especially on windows or some linux installations where the control key is, by default, for the menu shortcuts), you should uncheck the </span><span style="color:rgb(0,0,0);font-family:sans-serif;font-size:13px;font-weight:bold">Enable keybindings in menus</span><span style="color:rgb(0,0,0);font-family:serif;font-size:medium"> preference."</span><br>
</div><div><br></div><div>If I define and register my own keybindings.rkt file, bindings and rebinds work but they appear to wipe out any existing keybindings.<br></div><div><div style><br></div><div style>Examples below based on the Racket Doc on keybindings.</div>
<div style><br></div><div>;; OK </div><div>;;insert λ</div><div>(keybinding "c:\\" (λ (editor evt) </div><div> (send editor insert "λ")))</div></div><div><br></div><div><div>(define (rebind key command)</div>
<div> (keybinding</div><div> key</div><div> (λ (ed evt)</div><div> (send (send ed get-keymap) call-function</div><div> command ed evt #t))))</div><div><br></div><div style>;;OK</div><div>(rebind "c:w" "backward-kill-word")</div>
</div><div><br></div><div style>;; OK</div><div><div>(keybinding "c:c;c:t" (λ (editor evt) (send (send editor get-top-level-window) create-new-tab)))</div></div><div><br></div><div><div>;; Now Broken</div><div>"c:c;c:c" ;; check syntax is broken.</div>
</div><div><br></div><div><br></div><div>Similarly, if I attempt to bind anything into "c:x;?:?" things break, though the freshly added binding works.</div><div><br></div><div style>;; works</div><div style>(keybinding "c:x;c:t" (λ (editor evt) (send (send editor get-top-level-window) create-new-tab)))</div>
<div style><br></div><div style>;; Now BROKEN</div><div style>"c:x;c:f" ;; the open file dialog</div><div style><br></div><div style>;; Now BROKEN</div><div style>"c:x;c:s" ;; save definitions (file)</div>
<div style><br></div><div style>Roughly, it appears in lieu of extending the keymap with a new (re)binding, the new binding is added into a fresh keymap and the existing default keymap is shadowed, flushed, or ignored. They still show up on the menu listing "Show Active Keybindings" just no workee any more.</div>
<div style><br></div><div style><br></div></div>