eclipse-theia/theia

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

Open

#17,194 创建于 2026年3月19日

在 GitHub 查看
 (3 评论) (0 反应) (0 负责人)TypeScript (18,676 star) (2,478 fork)batch import
enhancementhelp wantedkeybindings

描述

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!

贡献者指南