From d21de9df0052d89bea09e947c312e3694cc64920 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sun, 17 Jan 2021 19:35:01 -0500 Subject: Update copyHostSelection to be popup-only (#1267) --- ext/bg/data/options-schema.json | 2 +- ext/bg/js/options.js | 2 +- ext/bg/settings2.html | 2 +- test/test-options-util.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ext/bg/data/options-schema.json b/ext/bg/data/options-schema.json index a140d3e9..189c8621 100644 --- a/ext/bg/data/options-schema.json +++ b/ext/bg/data/options-schema.json @@ -1038,7 +1038,7 @@ {"action": "addNoteTermKana", "key": "KeyR", "modifiers": ["alt"], "scopes": ["popup", "search"], "enabled": true}, {"action": "playAudio", "key": "KeyP", "modifiers": ["alt"], "scopes": ["popup", "search"], "enabled": true}, {"action": "viewNote", "key": "KeyV", "modifiers": ["alt"], "scopes": ["popup", "search"], "enabled": true}, - {"action": "copyHostSelection", "key": "KeyC", "modifiers": ["ctrl"], "scopes": ["popup", "search"], "enabled": true} + {"action": "copyHostSelection", "key": "KeyC", "modifiers": ["ctrl"], "scopes": ["popup"], "enabled": true} ] } } diff --git a/ext/bg/js/options.js b/ext/bg/js/options.js index deb20b00..1690efb0 100644 --- a/ext/bg/js/options.js +++ b/ext/bg/js/options.js @@ -712,7 +712,7 @@ class OptionsUtil { {action: 'addNoteTermKana', key: 'KeyR', modifiers: ['alt'], scopes: ['popup', 'search'], enabled: true}, {action: 'playAudio', key: 'KeyP', modifiers: ['alt'], scopes: ['popup', 'search'], enabled: true}, {action: 'viewNote', key: 'KeyV', modifiers: ['alt'], scopes: ['popup', 'search'], enabled: true}, - {action: 'copyHostSelection', key: 'KeyC', modifiers: ['ctrl'], scopes: ['popup', 'search'], enabled: true} + {action: 'copyHostSelection', key: 'KeyC', modifiers: ['ctrl'], scopes: ['popup'], enabled: true} ] }; profile.options.anki.suspendNewCards = false; diff --git a/ext/bg/settings2.html b/ext/bg/settings2.html index 128bd5ef..08f9ebef 100644 --- a/ext/bg/settings2.html +++ b/ext/bg/settings2.html @@ -3013,7 +3013,7 @@ - +
diff --git a/test/test-options-util.js b/test/test-options-util.js index c857b13f..5597dbba 100644 --- a/test/test-options-util.js +++ b/test/test-options-util.js @@ -455,7 +455,7 @@ function createProfileOptionsUpdatedTestData1() { {action: 'addNoteTermKana', key: 'KeyR', modifiers: ['alt'], scopes: ['popup', 'search'], enabled: true}, {action: 'playAudio', key: 'KeyP', modifiers: ['alt'], scopes: ['popup', 'search'], enabled: true}, {action: 'viewNote', key: 'KeyV', modifiers: ['alt'], scopes: ['popup', 'search'], enabled: true}, - {action: 'copyHostSelection', key: 'KeyC', modifiers: ['ctrl'], scopes: ['popup', 'search'], enabled: true} + {action: 'copyHostSelection', key: 'KeyC', modifiers: ['ctrl'], scopes: ['popup'], enabled: true} ] }, popupWindow: { -- cgit v1.2.3