eclipse-theia/theia

[Keymaps] Feature Request : Capture physical keystrokes for keybindings instead of manual text entry

Open

#17.194 aperta il 19 mar 2026

Vedi su GitHub
 (3 commenti) (0 reazioni) (0 assegnatari)TypeScript (2478 fork)batch import
enhancementhelp wantedkeybindings

Metriche repository

Star
 (18.676 star)
Metriche merge PR
 (Merge medio 12g 10h) (73 PR mergiate in 30 g)

Descrizione

Feature Description: The Current State: Currently, when a user wants to assign or change a keybinding in the Keyboard Shortcuts widget, they are required to manually type out the exact string representation of the keys (e.g., typing out "Ctrl+Alt+P"). This introduces UX friction for developers customizing their workspace and leaves room for syntax typos.

The Proposed Enhancement: If there are no hard technical blockers, it would significantly reduce UX friction to adopt a keystroke listener prompt (similar to VS Code and other modern IDEs). When clicking the edit icon, a prompt would say "Press desired key combination and then press Enter", and the UI would capture the physical keyboard events to format the string automatically.

Discussion / Context: I wanted to open a discussion to ask: Was this manual text-entry approach an intentional design choice (perhaps to support complex multi-chord sequences or due to historical browser event constraints), or is this simply an area of the UI that hasn't been updated yet?

I noticed this while testing my recent PR for the widget activation lifecycle (#17088). If the core team agrees this is a valuable enhancement and there are no historical reasons keeping it as text-only, I would be very interested in exploring a PR to implement a keystroke listener!

Guida contributor