Remapped keyboard keys are ignored
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 14.1k
- Forks
- 2.2k
- Avg merge
- 7h 35m
- Merged PRs (30d)
- 51
Description
Description
On my desktop, I've the "caps lock" key (that useless key to the left of "A") mapped to escape. This is not uncommon for developers, since Esc is a very used key, and "Caps lock" has very little use (at least for me).
This can be set up via wayland or Xorg -- back when I used Xorg, this was configured in my xorg.conf.d, but with wayland/swaywm, it's just a sway setting.
This seems to work for pretty much all apps, but for some reason, not on retroarch. On retroarch however, the "Caps lock" key does nothing.
I'd try to press the "real" escape key, however, when moving offices last year it came off the keyboard and got lost. Since it's a key I never used, I just laughed it off -- but my keyboard no longer has that key, regrettably.
On top of this, there seems to be a second bug: when closing the window (via my desktop's hotkey), I get a "press again to exit" message on retroarch. Trying to close it again does not work.
Expected behavior
Pressing the key that's mapped to "esc" to my system to exit retroarch.
Actual behavior
Pressing the key that's mapped to "esc" to my system does nothing.
Steps to reproduce the bug
- Configure either Xorg or Wayland to use
xkb_optionscaps:escape. - Run RetroArch
- Press Esc
Bisect Results
This doesn's seem to be a new bug.
Version/Commit
You can find this information under Information/System Information
- RetroArch: 1.8.5
Environment information
- OS: ArchLinux, with swaywm as a wayland compositor.
- Compiler: n/a
I also tried all the input drivers available; all had the same result.
Contributor guide
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 issue with the Xorg or Wayland caps:escape mapping and review RetroArch's input-driver handling, since the report says all available drivers behave the same. Also test the desktop close hotkey and the repeated exit prompt. Done means the remapped Escape key exits RetroArch and the close action works as expected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- desktop, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100