aboutsummaryrefslogtreecommitdiff
path: root/ext/bg
diff options
context:
space:
mode:
authorsiikamiika <siikamiika@users.noreply.github.com>2020-05-07 01:49:42 +0300
committerGitHub <noreply@github.com>2020-05-07 01:49:42 +0300
commita88501ff1014a70635a9c109939ea53b3046dd9c (patch)
treef4055c4fcf87b5001065e3ad855289e316902223 /ext/bg
parent253dcf8b38c6ef2bec1a524db70e30ac7b1817c5 (diff)
Text selection fixes (#511)
* select matched text in Frontend.findKanji * blur search query input when setting content
Diffstat (limited to 'ext/bg')
-rw-r--r--ext/bg/js/search.js5
1 files changed, 5 insertions, 0 deletions
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;