diff options
author | Alex Yatskov <alex@foosoft.net> | 2017-03-05 16:03:14 -0800 |
---|---|---|
committer | Alex Yatskov <alex@foosoft.net> | 2017-03-05 16:03:14 -0800 |
commit | efc5be4dacc69212a263eb48b79d2a729ca02958 (patch) | |
tree | 7bea29909cf6d2ee03c2ebf00ffd7e7672024a05 /ext/bg/js | |
parent | a4dfadaa152d9f102ec692ef70659387148a654b (diff) |
middle mouse button scanning1.1.0
Diffstat (limited to 'ext/bg/js')
-rw-r--r-- | ext/bg/js/options.js | 2 | ||||
-rw-r--r-- | ext/bg/js/util.js | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/ext/bg/js/options.js b/ext/bg/js/options.js index 3eadb779..4a7b88c1 100644 --- a/ext/bg/js/options.js +++ b/ext/bg/js/options.js @@ -32,6 +32,7 @@ function formRead() { optionsNew.general.maxResults = parseInt($('#max-displayed-results').val(), 10); optionsNew.scanning.requireShift = $('#hold-shift-to-scan').prop('checked'); + optionsNew.scanning.middleMouse = $('#middle-mouse-button-scan').prop('checked'); optionsNew.scanning.selectText = $('#select-matched-text').prop('checked'); optionsNew.scanning.imposter = $('#search-form-text-fields').prop('checked'); optionsNew.scanning.delay = parseInt($('#scan-delay').val(), 10); @@ -113,6 +114,7 @@ $(document).ready(() => { $('#max-displayed-results').val(options.general.maxResults); $('#hold-shift-to-scan').prop('checked', options.scanning.requireShift); + $('#middle-mouse-button-scan').prop('checked', options.scanning.middleMouse); $('#select-matched-text').prop('checked', options.scanning.selectText); $('#search-form-text-fields').prop('checked', options.scanning.imposter); $('#scan-delay').val(options.scanning.delay); diff --git a/ext/bg/js/util.js b/ext/bg/js/util.js index 2fd77130..e847090f 100644 --- a/ext/bg/js/util.js +++ b/ext/bg/js/util.js @@ -84,6 +84,7 @@ function optionsSetDefaults(options) { scanning: { requireShift: true, + middleMouse: true, selectText: true, imposter: true, delay: 15, |