From a88501ff1014a70635a9c109939ea53b3046dd9c Mon Sep 17 00:00:00 2001 From: siikamiika Date: Thu, 7 May 2020 01:49:42 +0300 Subject: Text selection fixes (#511) * select matched text in Frontend.findKanji * blur search query input when setting content --- ext/bg/js/search.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ext/bg/js') diff --git a/ext/bg/js/search.js b/ext/bg/js/search.js index 47d495e6..d69daea6 100644 --- a/ext/bg/js/search.js +++ b/ext/bg/js/search.js @@ -301,6 +301,11 @@ class DisplaySearch extends Display { this.queryParser.setText(interpretedQuery); } + async setContent(type, details) { + this.query.blur(); + await super.setContent(type, details); + } + setIntroVisible(visible, animate) { if (this.introVisible === visible) { return; -- cgit v1.2.3