rust-lang / rust-lang/rust-playground
Rust Playground doesn't deal with re-mapped keys correctly.
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 1.4k
- Forks
- 267
- Avg merge
- 3h 2m
- Merged PRs (30d)
- 6
Description
Hi,
To cut a long story short, I use a Maltron keyboard to keep RSI at bay. It's a totally bonkers looking thing, but it works.
I didn't like the position of the escape key, and swapped it with the windows key, remapping the key in Xorg with (in my .xsession):
xmodmap -e 'keysym Super_L = Escape'
This works for pretty much everything, but not for the rust playground. I'd like to use the playground in vim mode, but have to reach to the original position of the escape key to exit insert mode. The key remapping is to respected for some reason.
Could the Rust playground take xmodmap re-mappings into account?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the Rust Playground issue in Vim mode with the Xorg xmodmap mapping shown in the report. Trace how Escape and other keyboard events are received by the playground, then verify that the remapped key exits insert mode while preserving normal behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- frontend, web-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100