mirror of
https://github.com/atom/atom.git
synced 2026-02-19 02:44:29 -05:00
Only cancel focus events if the editor is or contains the related target
This commit is contained in:
@@ -90,7 +90,7 @@ class TextEditorElement extends HTMLElement
|
||||
@component = null
|
||||
|
||||
focused: (event) ->
|
||||
if @hasFocus()
|
||||
if @contains(event.relatedTarget) or this is event.relatedTarget
|
||||
event.stopPropagation()
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user