Skip to content

Add terminal focus shortcut and input focus highlight - #421

Merged
powerfooI merged 2 commits into
mainfrom
focus-terminal-shortcut
Oct 15, 2026
Merged

powerfooI merged 2 commits into
mainfrom
focus-terminal-shortcut

Conversation

@powerfooI

@powerfooI powerfooI commented Oct 15, 2026 •

Copy link
Copy Markdown
Owner

When another control takes keyboard focus, users cannot tell whether the terminal still accepts input or return to it without clicking. Add a configurable Ctrl+Backquote shortcut that returns focus to the current terminal, or its open Composer draft, and reveals the terminal when another workspace surface is open.

Use a bright accent border and glow for actual input focus in single-pane, split, zoomed, and Zen layouts. Keep a muted selection border on the active split pane after input focus moves elsewhere. Existing custom shortcut assignments survive the addition of the new action.

Terminal focus uses the existing input activation path before focusing xterm, including on touch-capable devices using the desktop layout. The React/xterm regression harness covers direct input after touch, Composer, and disconnected, paused, and inactive-pane safety.

Validation

  • bun run precommit — formatting, lint, type checks, frontend build and asset budgets, and the complete test suite: 3,704 passed, 4 skipped.
  • bun run build:web — passed.
  • Focus selection tests cover single-pane, split, and pane-switcher layouts, Composer/direct input, and missing terminals; shortcut tests cover platform defaults, global conflicts, and older presets.

Limitations

  • The shortcut follows the desktop layout; mobile layout (including desktop windows at or below the configured mobile breakpoint) ignores it. Open menus or dialogs must be closed first.
  • Real browser/PWA focus and visual acceptance remain unverified because both browser-extension and native-window control were unavailable in this session.

@powerfooI powerfooI added the enhancement New feature or request label Oct 15, 2026
@powerfooI

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7070ad97f4

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread web/src/activeTerminalInput.ts Outdated
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-15T07:34:23.714056Z 8b060b6 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@powerfooI

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Bravo.

Reviewed commit: 8b060b6152

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@powerfooI
powerfooI merged commit 9c39505 into main Oct 15, 2026
5 checks passed
@powerfooI
powerfooI deleted the focus-terminal-shortcut branch October 15, 2026 07:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant