From 62b95a656f5e55395893982822b0388a425f5a29 Mon Sep 17 00:00:00 2001 From: odehjoseph Date: Thu, 26 Sep 2019 21:33:33 -0700 Subject: Add option to enable Alt+B lookup --- ext/mixed/js/display.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ext/mixed') diff --git a/ext/mixed/js/display.js b/ext/mixed/js/display.js index ca1738a6..3a728ee8 100644 --- a/ext/mixed/js/display.js +++ b/ext/mixed/js/display.js @@ -323,7 +323,9 @@ class Display { $('.action-play-audio').click(this.onAudioPlay.bind(this)); $('.kanji-link').click(this.onKanjiLookup.bind(this)); $('.source-term').click(this.onSourceTermView.bind(this)); - $('.glossary-item').click(this.onTermLookup.bind(this)); + if (this.options.scanning.enablePopupSearch) { + $('.glossary-item').click(this.onTermLookup.bind(this)); + } await this.adderButtonUpdate(['term-kanji', 'term-kana'], sequence); } catch (e) { -- cgit v1.2.3