summaryrefslogtreecommitdiff
path: root/ext/fg
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2017-01-07 18:52:51 -0800
committerAlex Yatskov <alex@foosoft.net>2017-01-07 18:52:51 -0800
commitd770030688536403455132f24907725138528ef4 (patch)
tree8900123ba62262926d08cd5fd9b6e75ec3d304b4 /ext/fg
parentfab7a03b6c345ccd9fec66adb08a45206557c306 (diff)
WIP
Diffstat (limited to 'ext/fg')
-rw-r--r--ext/fg/js/driver.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/ext/fg/js/driver.js b/ext/fg/js/driver.js
index c0f0afe9..c0e328d5 100644
--- a/ext/fg/js/driver.js
+++ b/ext/fg/js/driver.js
@@ -160,6 +160,10 @@ class Driver {
this.popup.showNextTo(textSource.getRect());
this.popup.showTermDefs(definitions, this.options);
+ this.lastTextSource = textSource;
+ if (this.options.selectMatchedText) {
+ textSource.select();
+ }
return true;
}
@@ -180,6 +184,10 @@ class Driver {
this.popup.showNextTo(textSource.getRect());
this.popup.showKanjiDefs(definitions, this.options);
+ this.lastTextSource = textSource;
+ if (this.options.selectMatchedText) {
+ textSource.select();
+ }
return true;
}