mirror of
https://github.com/atom/atom.git
synced 2026-02-19 02:44:29 -05:00
Don’t handle text editor focus when it already has focus
This commit is contained in:
@@ -89,7 +89,11 @@ class TextEditorElement extends HTMLElement
|
||||
React.unmountComponentAtNode(this)
|
||||
@component = null
|
||||
|
||||
focused: ->
|
||||
focused: (event) ->
|
||||
if @hasFocus()
|
||||
event.stopPropagation()
|
||||
return
|
||||
|
||||
if @component?
|
||||
@component.focused()
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user