rust-playground icon indicating copy to clipboard operation
rust-playground copied to clipboard

Can't use certain keyboard input in the playground

Open Zstorm999 opened this issue 1 year ago • 2 comments

Operating system: MacOS Sequoia 15.0.1 (the issue was also present in earlier versions) Browser: Firefox, latest version

As the title says, I have a problem with some keyboard inputs not interpreted correctly in the playground. I have a input method mapping OPT+SPACE/ALT+SPACE to underscore (0x95, _), which works perfectly fine on all applications and websites except for the rust playground.

For some reason, the input is simply ignored and no character is displayed, and I have to copy and paste manually each time I want to use an underscore (which is pretty often when snake-case is the convention).

Has anybody run into this problem before ? Is there some customization that I’m not aware of to make this work ?

Zstorm999 avatar Oct 28 '24 10:10 Zstorm999

Which editor are you using?

If Ace, can you try the same thing on https://ace.c9.io/build/kitchen-sink.html

If Monaco, can you try the same thing on https://microsoft.github.io/monaco-editor/playground.html

shepmaster avatar Oct 30 '24 13:10 shepmaster

I am using Ace. I tried the first editor, and the same shortcut triggers the completion list.

I also tried it on the Monaco editor, and it works as expected both in the playground and the link you gave me, so the problem is definitely coming from Ace

Zstorm999 avatar Oct 31 '24 14:10 Zstorm999