w3c / webextensions

Charter and administrivia for the WebExtensions Community Group (WECG)
Other
575 stars 50 forks source link

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

Open polywock opened 4 months ago

polywock commented 4 months ago

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.