diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/background/actions/command.js | 4 | ||||
-rw-r--r-- | src/settings/components/form/keymaps-form.jsx | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/background/actions/command.js b/src/background/actions/command.js index 39e880d..f1ee5b5 100644 --- a/src/background/actions/command.js +++ b/src/background/actions/command.js @@ -20,7 +20,9 @@ const tabopenCommand = (url) => { }; const tabcloseCommand = () => { - return browser.tabs.query({ active: true }).then((tabList) => { + return browser.tabs.query({ + active: true, currentWindow: true + }).then((tabList) => { return browser.tabs.remove(tabList.map(tab => tab.id)); }); }; diff --git a/src/settings/components/form/keymaps-form.jsx b/src/settings/components/form/keymaps-form.jsx index c830d95..f0f69cf 100644 --- a/src/settings/components/form/keymaps-form.jsx +++ b/src/settings/components/form/keymaps-form.jsx @@ -51,6 +51,7 @@ const KeyMapFields = [ ['command.show.winopen?{"alter":false}', 'Open URL in new window'], ['command.show.winopen?{"alter":true}', 'Alter URL in new window'], ['command.show.buffer', 'Open buffer command'], + ['command.show.addbookmark?{"alter":true}', 'Open addbookmark command'], ], [ ['addon.toggle.enabled', 'Enable or disable'], ['urls.yank', 'Copy current URL'], @@ -59,6 +60,7 @@ const KeyMapFields = [ ['zoom.in', 'Zoom-in'], ['zoom.out', 'Zoom-out'], ['zoom.neutral', 'Reset zoom level'], + ['page.source', 'Open a page source'], ] ]; |