WebExtensions: Implement support for special shortcut commands
The commands
API defines special shortcuts here: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/commands#special_shortcuts
This needs to be handled in commands.c#on_command_activated()
. ephy_web_extension_api_commands_init()
should create these by default for every extension if they don't specify them (and cleanup in ephy_web_extension_api_commands_dispose()
).
It also should be handled in menus.c#create_context_menu_item()
. When a menu item is created with menu->command
set it should activate the same GAction that commands
does.
Edited by Patrick Griffis