mirror of
https://github.com/atom/atom.git
synced 2026-01-24 06:18:03 -05:00
Close command logger when it loses focus
This commit is contained in:
@@ -34,6 +34,7 @@ class CommandLoggerView extends ScrollView
|
||||
super
|
||||
|
||||
@command 'core:cancel', => @detach()
|
||||
@on 'blur', => @detach() unless document.activeElement is this[0]
|
||||
|
||||
toggle: (@eventLog={}) ->
|
||||
if @hasParent()
|
||||
@@ -180,8 +181,11 @@ class CommandLoggerView extends ScrollView
|
||||
@focus()
|
||||
|
||||
detach: ->
|
||||
super()
|
||||
return if @detaching
|
||||
@detaching = true
|
||||
super
|
||||
@rootView.focus()
|
||||
@detaching = false
|
||||
|
||||
serialize: ->
|
||||
eventLog: @eventLog
|
||||
|
||||
Reference in New Issue
Block a user