summaryrefslogtreecommitdiff
path: root/ext/bg/js/options.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/bg/js/options.js')
-rw-r--r--ext/bg/js/options.js14
1 files changed, 11 insertions, 3 deletions
diff --git a/ext/bg/js/options.js b/ext/bg/js/options.js
index ab32bb11..ac42fc09 100644
--- a/ext/bg/js/options.js
+++ b/ext/bg/js/options.js
@@ -493,19 +493,27 @@ class OptionsUtil {
const {modifier, middleMouse} = profileOptions.scanning;
const scanningInputs = [];
+ let modifierInput = '';
switch (modifier) {
case 'alt':
case 'ctrl':
case 'shift':
case 'meta':
- scanningInputs.push(modifier);
+ modifierInput = modifier;
break;
case 'none':
- scanningInputs.push('');
+ modifierInput = '';
break;
}
+ scanningInputs.push({
+ include: modifierInput,
+ exclude: ''
+ });
if (middleMouse) {
- scanningInputs.push('mouse2');
+ scanningInputs.push({
+ include: 'mouse2',
+ exclude: ''
+ });
}
profileOptions.scanning.inputs = scanningInputs;
}