[Bug]: Web UI: Pressing Ctrl+<key> with Caps Lock active triggers Ctrl+Shift+<key> shortcuts

未关闭 适合新手
#68,237 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
65/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
typescript, web-dev
领域
frontend

调研方向

先找到 Web UI 的键盘快捷键处理逻辑,并检查 Caps Lock 启用时它如何解释 Ctrl 和 Shift。按照 issue 中的步骤复现问题,然后添加或更新一个针对快捷键行为的测试。完成标准是:启用 Caps Lock 时,Ctrl+键不再触发相应的 Ctrl+Shift+键操作,同时预期的 Ctrl+Shift+键快捷键仍能正常工作。

由索引模型根据 Issue 内容生成。

描述

area/web platform/windows type/bug version/v2
Description

When Caps Lock is enabled in the OpenCode Web UI (opencode serve), pressing Ctrl + <key> triggers shortcuts bound to Ctrl + Shift + <key> (for example, pressing Ctrl + A toggles Auto-accept permissions instead of selecting all text).

Plugins

No plugins found

OpenCode version

v2.4.3

Steps to reproduce
  1. Run opencode serve.
  2. Open the Web UI URL in a browser.
  3. Open any chat session.
  4. Enable Caps Lock.
  5. Press Ctrl + <key> for any action that has a Ctrl + Shift + <key> shortcut (e.g., Ctrl + A triggers Ctrl + Shift + A).
Screenshot

No response

Operating System

Windows 11

Terminal

cmd.exe

主要语言
TypeScript
星标
230k
派生
31.3k
平均合并
6 小时
30 天内合并 PR
528

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

anomalyco/opencode 的其他 Issue

查看 anomalyco/opencode 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。