Add support for chords to mapper tool
- 主要语言
- JavaScript
- 星标
- 3.3k
- 派生
- 99
- 平均合并
- 14 小时 22 分钟
- 30 天内合并 PR
- 6
描述
It would be great if we could also display chords in the mapper tool, similarly to VSCode.
I dug into this a bit and it's more complicated than I expected. If you just have a timer and track keydown events, you get chords like Meta Meta+b because the keydown for Meta is different from the keydown for b. It looks like this is solved in the main code with the 'radix trie' logic, but this seems pretty closely tied to the hotkeys that are configured on the element, and we can't configure _all_ possible hotkeys onto the mapper tool.
贡献指南
调研方向
首先跟踪 issue 中描述的 mapper tool 和主代码的 radix trie 逻辑,然后比较 VSCode 如何显示 chords。确定当 mapper 无法配置所有可能的 hotkeys 时,应如何对 modifier 和 keydown 事件进行分组;当 mapper 显示 chords 且没有重复的 modifier 条目时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript
- 领域
- frontend, tooling
- Issue 类型
- 功能
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 30/100