mirror of
https://github.com/atom/atom.git
synced 2026-02-19 02:44:29 -05:00
Don’t use :focus selector to store previously focused element
This commit is contained in:
@@ -254,7 +254,7 @@ class SelectListView extends View
|
||||
# Extended: Store the currently focused element. This element will be given
|
||||
# back focus when {::cancel} is called.
|
||||
storeFocusedElement: ->
|
||||
@previouslyFocusedElement = $(':focus')
|
||||
@previouslyFocusedElement = $(document.activeElement)
|
||||
|
||||
###
|
||||
Section: Private
|
||||
|
||||
Reference in New Issue
Block a user