mirror of
https://github.com/zed-industries/zed.git
synced 2026-06-01 03:14:56 +07:00
terminal: Properly apply focus when switching terminal via tabbing hotkey (#53127)
Self-Review Checklist: - [x] I've reviewed my own diff for quality, security, and reliability - [x] Unsafe blocks (if any) have justifying comments - [x] The content is consistent with the [UI/UX checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist) - [ ] Tests cover the new/changed behavior - [x] Performance impact has been considered and is acceptable Closes #53056. Release Notes: - Fixed terminal tabs losing keyboard focus after switching tabs on Linux X11
This commit is contained in:
parent
2d650da0dc
commit
00c771af0a
1 changed files with 3 additions and 1 deletions
|
|
@ -1356,7 +1356,9 @@ impl Item for TerminalView {
|
|||
h_flex()
|
||||
.gap_1()
|
||||
.group("term-tab-icon")
|
||||
.track_focus(&self.focus_handle)
|
||||
.when(!params.selected, |this| {
|
||||
this.track_focus(&self.focus_handle)
|
||||
})
|
||||
.on_action(move |action: &RenameTerminal, window, cx| {
|
||||
self_handle
|
||||
.update(cx, |this, cx| this.rename_terminal(action, window, cx))
|
||||
|
|
|
|||
Loading…
Reference in a new issue