rust-lang / rust-lang/rust-playground

Rust Playground doesn't deal with re-mapped keys correctly.

Open
#324 14 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.