mirror of
https://github.com/atom/atom.git
synced 2026-02-04 11:45:16 -05:00
use is-focused for the editor because it needs it's own state independent of the window state
This commit is contained in:
@@ -351,12 +351,12 @@ class Editor extends View
|
||||
@hiddenInput.on 'focus', =>
|
||||
@rootView()?.editorFocused(this)
|
||||
@isFocused = true
|
||||
@removeClass 'is-blurred'
|
||||
@addClass 'is-focused'
|
||||
|
||||
@hiddenInput.on 'focusout', =>
|
||||
@isFocused = false
|
||||
@autosave() if config.get "editor.autosave"
|
||||
@addClass 'is-blurred'
|
||||
@removeClass 'is-focused'
|
||||
|
||||
@underlayer.on 'click', (e) =>
|
||||
return unless e.target is @underlayer[0]
|
||||
|
||||
Reference in New Issue
Block a user