mirror of
https://github.com/atom/atom.git
synced 2026-02-07 21:25:05 -05:00
Focus pane after reopening it
Previously the reopened item would not have focus if it was reopened into a newly appended pane.
This commit is contained in:
@@ -55,7 +55,9 @@ class PaneContainer extends View
|
||||
activePane.showItem(deserialize(lastItemState))
|
||||
true
|
||||
else
|
||||
@append(new Pane(deserialize(lastItemState)))
|
||||
newPane = new Pane(deserialize(lastItemState))
|
||||
@append(newPane)
|
||||
newPane.focus()
|
||||
|
||||
itemDestroyed: (item) ->
|
||||
state = item.serialize?()
|
||||
|
||||
Reference in New Issue
Block a user