Web Inspector: REGRESSION (r237232): changing resources via up/down blurs the TreeOut...
authordrousso@apple.com <drousso@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 24 Oct 2018 20:19:39 +0000 (20:19 +0000)
committerdrousso@apple.com <drousso@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 24 Oct 2018 20:19:39 +0000 (20:19 +0000)
commit79ab3f41ec887fe6e8f0f1c59dbcd2c133c4fb90
treeb7c62389e053e8e8b08ab3f33e0e4c63f73c620f
parent9c9e65d9953094549c36f0f233ca2c87850097a6
Web Inspector: REGRESSION (r237232): changing resources via up/down blurs the TreeOutline in Resources
https://bugs.webkit.org/show_bug.cgi?id=190862

Reviewed by Matt Baker.

* UserInterface/Views/TextEditor.js:
(WI.TextEditor.prototype.set selectedTextRange):
Don't `focus` unless the `activeElement` is not a WebInspector element (e.g. <body>),
meaning that the previously focused element has been removed from the DOM and no longer
needs to keep the focus.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@237397 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebInspectorUI/ChangeLog
Source/WebInspectorUI/UserInterface/Views/TextEditor.js