From d770030688536403455132f24907725138528ef4 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Sat, 7 Jan 2017 18:52:51 -0800 Subject: WIP --- ext/fg/js/driver.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'ext/fg/js') 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; } -- cgit v1.2.3