Copy keybinding in DrRacket not working

34 views
Skip to first unread message

Dimaugh Silvestris

unread,
Nov 22, 2020, 10:49:38 AM11/22/20
to Racket Users

For some reason, Control+c isn't working in DrRacket, while Control+x for cut and Control+v work as expected. I think I've had this since I installed DrRacket, and I haven't changed anything about keybindings that I remember; I've been using the right-click menu instead, but it's cumbersome and after a while I've gotten sick of it.

In Edit->Keybindings->Show Active Keybindings it appears as "Copy (c:c)", so I have no idea what could be causing this.

Dimaugh Silvestris

unread,
Nov 22, 2020, 2:45:55 PM11/22/20
to Racket Users
Ok, so I have tried adding a custom keybinding so that Control+n does the copying:
(keybinding "c:n"
            (lambda (editor evt) (send editor copy)))

Works perfect, but conflicts a bit with my muscle memory.
So I tried adding a custom keybinding using c:c, and now when I open DrRacket, I get the error:
<<Error when installing the keybindings /home/dimaugh/prog/rkt/keybindings.rkt:
map-function in keymap%: "c:c" is already mapped as a non-prefix key>>

But after clicking the OK button I can use DrRacket, and Control+c works as it should.
The error message bothers me a bit, but other than that it's now solved.

Laurent

unread,
Nov 23, 2020, 8:53:03 AM11/23/20
to Dimaugh Silvestris, Racket Users
On Sun, Nov 22, 2020 at 7:45 PM Dimaugh Silvestris <dimaughs...@gmail.com> wrote:
So I tried adding a custom keybinding using c:c, and now when I open DrRacket, I get the error:
<<Error when installing the keybindings /home/dimaugh/prog/rkt/keybindings.rkt:
map-function in keymap%: "c:c" is already mapped as a non-prefix key>>

This seems like there was another keybinding with the *prefix* c:c (say c:c;c:x for example).

In the search bar of Edit->Keybindings->Show Active Keybindings, type "c:c", maybe you'll see several entries matching this prefix.

If not, I don't know :)

Dimaugh Silvestris

unread,
Nov 23, 2020, 10:41:40 AM11/23/20
to Racket Users
No, as I said in the first mail, I hadn't added any custom keybindings before and so I only had the DrRacket default keybindings, and c:c only showed the keybinding for Copy, though it didn't work.
Really odd.
Reply all
Reply to author
Forward
0 new messages