diff options
Diffstat (limited to 'lib/ui/tab.go')
-rw-r--r-- | lib/ui/tab.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/ui/tab.go b/lib/ui/tab.go index 1fd2b80..9c19cd7 100644 --- a/lib/ui/tab.go +++ b/lib/ui/tab.go @@ -77,6 +77,10 @@ func (tabs *Tabs) Remove(content Drawable) { index, ok := tabs.popHistory() if ok { tabs.Select(index) + interactive, ok := tabs.Tabs[tabs.Selected].Content.(Interactive) + if ok { + interactive.Focus(true) + } } tabs.TabStrip.Invalidate() } |