Skip to content

fix: make Ctrl+W context-aware to preserve word deletion in editor#2390

Merged
dgageot merged 1 commit intodocker:mainfrom
dgageot:board/fix-docker-agent-github-issue-1771-d918d329
Apr 13, 2026
Merged

fix: make Ctrl+W context-aware to preserve word deletion in editor#2390
dgageot merged 1 commit intodocker:mainfrom
dgageot:board/fix-docker-agent-github-issue-1771-d918d329

Conversation

@dgageot
Copy link
Copy Markdown
Member

@dgageot dgageot commented Apr 12, 2026

When the editor is focused, Ctrl+W now passes through for standard word deletion instead of closing the tab. A new SetCloseTabEnabled method on TabBar toggles the binding based on focus state before forwarding keys, keeping the logic encapsulated within the tab bar component.

Fixes #1771

When the editor is focused, Ctrl+W now passes through for standard word
deletion instead of closing the tab. A new SetCloseTabEnabled method on
TabBar toggles the binding based on focus state before forwarding keys,
keeping the logic encapsulated within the tab bar component.

Fixes docker#1771

Assisted-By: docker-agent
@dgageot dgageot requested a review from a team as a code owner April 12, 2026 15:47
@dgageot dgageot merged commit 26e5ed6 into docker:main Apr 13, 2026
9 checks passed
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.

Fix ctrl+w

2 participants