⌘K: first ↓ keeps the top result selected, so moving down takes two presses
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 72/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- typescript
- 领域
- frontend
调研方向
从 ⌘K 命令面板组件及其键盘处理程序开始。问题在于,选中索引从一个未设置或哨兵值开始,第一次按 ↓ 只是把它规范化为 0,真正的移动要到第二次按键才会发生。找到选择器选中索引的初始化位置以及 ↓ 对其递增的位置,并让第一次按键在某个项目已视觉选中时移动到索引 1。根据报告,⌘N 选择器也会复现该问题,因此请检查它是否共享同一个 hook 或列表组件,并通过现有的选择器测试或用键盘操作面板来验证。
由索引模型根据 Issue 内容生成。
描述
Area
Command palette (⌘K) / keyboard navigation
Steps to reproduce
- Press ⌘K.
- Type a search, for example
fleet. The first result is shown as selected. - Press ↓ once.
Expected behavior
The second result is selected after one ↓.
Actual behavior
The first ↓ keeps the first result selected; only the second ↓ moves to the second result. Enter right after typing does open the first result, so it is selected, but the first ↓ is spent re-selecting it. The same happens in the ⌘N picker.
Impact
Every keyboard pick below the top result takes one extra keypress, and it looks like the key was missed.
Version or commit
T3 Code (Beta) 0.1.11 desktop app on macOS, server 0.1.11. Also seen in the web client served by the same server.
Workaround
Press ↓ one extra time.
- 主要语言
- TypeScript
- 星标
- 24.8k
- 派生
- 6.4k
- 平均合并
- 1 小时 27 分钟
- 30 天内合并 PR
- 530
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
pingdotgg/t3code 的其他 Issue
-
via-triage
难度 2/5 1-3 小时 新手友好度 70/100
维护者通常 1 天内回复
-
needs more info
难度 2/5 1-3 小时 新手友好度 72/100
pingdotgg/t3code#41868 · 1 条评论 ·
维护者通常 1 天内回复
-
bug needs-triage
难度 2/5 1-3 小时 新手友好度 65/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 74/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 66/100
维护者通常 1 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 75/100
vercel-labs/ui#1108 ·
维护者通常 1 天内回复
-
bug
难度 2/5 半天 新手友好度 62/100
garethgeorge/backrest#1451 ·
维护者通常 1 天内回复
-
fix(core): \.pluck() returns values in key insertion order instead of requested argument order可能已有人在做 @ManyaS-Git 于 1 天前认领。 未关闭status:in-linear
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 1 天内回复
-
Activity indicator ignores prefers-reduced-motion可能已有人在做 @CapThunder19 今天认领。 未关闭bug
难度 1/5 1 小时以内 新手友好度 85/100
joinmarket-webui/jam#1675 ·
维护者通常 3 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 13 天内回复