Skip to content

fix(workspace): keep shortcuts active when no tabs are open - #269

Draft
FrankiNarvaez wants to merge 1 commit into
Gentleman-Programming:mainfrom
FrankiNarvaez:fix/empty-workspace-shortcuts
Draft

FrankiNarvaez wants to merge 1 commit into
Gentleman-Programming:mainfrom
FrankiNarvaez:fix/empty-workspace-shortcuts

Conversation

@FrankiNarvaez

Copy link
Copy Markdown
Contributor

What and why

Closes #268.

An empty workspace has no pane to receive keyboard focus. Focus its root when switching to an empty workspace or closing the last tab, so Cmd+T, Cmd+Shift+T and Cmd+O can reach their existing handlers. Non-empty workspaces still route focus to their active pane.

How it was tested

On macOS, a rendered GPUI regression test switches into an empty workspace and checks focus and availability of all three actions. It failed without the empty-switch fallback and passed with it. The workspace suite passed (1,335 passed, 5 ignored). Manual smoke testing in an isolated app and Windows/Linux verification are pending.

Security

  • Adds or bumps dependencies
  • Starts processes, opens network connections or downloads files
  • Reads or writes files outside the app data directory
  • Touches CI, build scripts, packaging or the updater
  • Adds binary files
  • None of the above

Checklist

  • cargo fmt --check, cargo clippy --workspace --all-targets --locked -- -D warnings, cargo test --workspace --locked
  • One change per PR; no unrelated refactors

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.

bug(workspace): keyboard shortcuts stop responding in an empty workspace

1 participant