diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-12-28 17:41:59 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-28 17:41:59 -0500 |
commit | b6038c87b66630b341e431a4722856c9a3a282ed (patch) | |
tree | 721c26ef99b1e953904c10060c2a1bace281335e /ext/bg/js/search.js | |
parent | c03340c4aa77c0a84b28bf18407aa79972697213 (diff) |
Improve document focus control (#1167)
* Improve styles for #content-scroll-focus
* Create new class to manage and control document focus
* Use new focus class
* Add a check to prevent redundant .blur calls
Diffstat (limited to 'ext/bg/js/search.js')
-rw-r--r-- | ext/bg/js/search.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/bg/js/search.js b/ext/bg/js/search.js index 884ab33c..fb8757eb 100644 --- a/ext/bg/js/search.js +++ b/ext/bg/js/search.js @@ -24,8 +24,8 @@ */ class DisplaySearch extends Display { - constructor(japaneseUtil) { - super('search', japaneseUtil); + constructor(japaneseUtil, documentFocusController) { + super('search', japaneseUtil, documentFocusController); this._searchButton = document.querySelector('#search-button'); this._queryInput = document.querySelector('#search-textbox'); this._introElement = document.querySelector('#intro'); |