Skip to content

Add a keyboard shortcut to open the sidebar / side panel #392

Description

@olsh

Split out of #246, which bundled three unrelated requests.

Now that the extension has a sidebar on Firefox (sidebar_action, #386) and a side panel on Chromium (side_panel, #356), there is no way to open either from the keyboard. src/manifest.json declares no commands key at all.

Firefox exposes _execute_sidebar_action as a special shortcut, so declaring it in commands gives users a bindable (and optionally default) shortcut in Manage Extension Shortcuts.

Chromium has no _execute_side_panel equivalent, so it needs a normal named command whose handler calls the same code path the toolbar click uses to open the panel.

Both branches would go behind the usual // @if BROWSER=... preprocessing, since the two halves are not interchangeable.

Worth checking whether a default binding is a good idea at all, or whether the command should ship unbound and let users assign it — extensions that claim a default chord tend to collide with each other.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementhelp-wantedThe issue is "up for grabs" - add a comment if you are interested in working on it

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions