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

Open Beginner friendly
#68,237 6 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@saurabhbhoir456 is already working on this.

Since Dec 5, 2026.

  • #68458 by @saurabhbhoir456 — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
65/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
typescript, web-dev
Domain
frontend

Research direction

Start by locating the Web UI keyboard shortcut handling and checking how it interprets Ctrl and Shift when Caps Lock is active. Reproduce with the steps in the issue, then add or update a focused test for the shortcut behavior. Done means Ctrl+key no longer triggers the matching Ctrl+Shift+key action with Caps Lock enabled, while the intended Ctrl+Shift+key shortcut still works.

Written by the indexing model from the issue text.

Description

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

Dominant language
TypeScript
Stars
230k
Forks
31.3k
Avg merge
5h 44m
Merged PRs (30d)
529

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from anomalyco/opencode

All issues in anomalyco/opencode

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.