Skip to content

fix(app): stop terminal autofocus on shortcuts#18931

Merged
nexxeln merged 2 commits intodevfrom
fix/terminal-shortcut-focus
Mar 24, 2026
Merged

fix(app): stop terminal autofocus on shortcuts#18931
nexxeln merged 2 commits intodevfrom
fix/terminal-shortcut-focus

Conversation

@nexxeln
Copy link
Copy Markdown
Member

@nexxeln nexxeln commented Mar 24, 2026

summary

  • stop the session-level keydown handler from auto-focusing the terminal for modifier-only presses and shortcut chords
  • keep plain typing focused on the open terminal so normal terminal entry still works
  • add helper coverage for modifier, shortcut, and plain typing cases

testing

  • bun test src/pages/session/helpers.test.ts
  • bun typecheck

@nexxeln nexxeln requested a review from adamdotdevin as a code owner March 24, 2026 11:07
@nexxeln nexxeln enabled auto-merge (squash) March 24, 2026 11:09
@nexxeln nexxeln merged commit fde201c into dev Mar 24, 2026
8 checks passed
@nexxeln nexxeln deleted the fix/terminal-shortcut-focus branch March 24, 2026 11:16
Andres77872 pushed a commit to Andres77872/opencode that referenced this pull request Mar 26, 2026
dzianisv pushed a commit to dzianisv/opencode that referenced this pull request Mar 26, 2026
dzianisv pushed a commit to dzianisv/opencode that referenced this pull request Apr 2, 2026
balcsida pushed a commit to balcsida/opencode that referenced this pull request Apr 8, 2026
RobertWsp pushed a commit to RobertWsp/opencode that referenced this pull request Apr 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant