Commit b4343e5
committed
fix: make Ctrl+W context-aware to preserve word deletion in editor
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
Assisted-By: docker-agent1 parent f96edc1 commit b4343e5
2 files changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
149 | 155 | | |
150 | 156 | | |
151 | 157 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1775 | 1775 | | |
1776 | 1776 | | |
1777 | 1777 | | |
| 1778 | + | |
| 1779 | + | |
1778 | 1780 | | |
| 1781 | + | |
1779 | 1782 | | |
1780 | 1783 | | |
1781 | 1784 | | |
| |||
0 commit comments