w3c / webextensions

Charter and administrivia for the WebExtensions Community Group (WECG)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Proposal: browser.commands.clear() to clear browser shortcuts

polywock opened this issue · comments

Problem

Sometimes users set shortcuts for an extension and forget to clear them. This can especially be problematic with browser shortcut keys that are in "global" mode, which some browsers support. Currently, I try to warn users when this happens, but it would be better if I could just clear it myself.

Proposal

A method that extensions can use to clear them.

browser.commands.clear() // clear all 
browser.commands.clear(command: string) // clear by command name.