Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Can non-alphanumeric keys be used as an extension shortcut key?

  • 7 پاسخ
  • 0 have this problem
  • 14 views
  • آخرین پاسخ توسّط arunkakorp

more options

I just setup this firefox extension to help me manage my 800+ tabs - https://addons.mozilla.org/en-US/firefox/addon/simple-tab-groups/ . This might have even been causing Firefox to crash and my computer to restart, but I'll save that for a separate issue. The extension has some suggested shortcut keys, particularly Ctrl + Backtick and Ctrl + Shift + Backtick to switch between next and previous Tab groups. I tried to go to Manage Extension Shortcuts in settings, and tried to specify the keys Ctr + Backtick, but the input box would not accept the key. In fact it only seems to accept Ctrl + <alpha-numeric> key. or Ctrl + Alt + <alphanum>

Is there anyway to enable this? Most keys like Ctrl + alphabets appears to be already mapped by firefox's default mappings. my Ctrl + numbers are also similarly mapped by another tab extension to switch tabs.

Thanks, arun

I just setup this firefox extension to help me manage my 800+ tabs - https://addons.mozilla.org/en-US/firefox/addon/simple-tab-groups/ . This might have even been causing Firefox to crash and my computer to restart, but I'll save that for a separate issue. The extension has some suggested shortcut keys, particularly Ctrl + Backtick and Ctrl + Shift + Backtick to switch between next and previous Tab groups. I tried to go to Manage Extension Shortcuts in settings, and tried to specify the keys Ctr + Backtick, but the input box would not accept the key. In fact it only seems to accept Ctrl + <alpha-numeric> key. or Ctrl + Alt + <alphanum> Is there anyway to enable this? Most keys like Ctrl + alphabets appears to be already mapped by firefox's default mappings. my Ctrl + numbers are also similarly mapped by another tab extension to switch tabs. Thanks, arun

Chosen solution

Here's a list of allowed keys: https://searchfox.org/mozilla-central/source/toolkit/mozapps/extensions/content/shortcuts.js#84

   "0" - "9",
   "A" - "Z",
   F1 - F19,
   "MediaNextTrack", "MediaPlayPause", "MediaPrevTrack", "MediaStop",
   "Up",  "Down", "Left",  "Right",
   "Comma", "Period",
   "Space",
   "Home", "End",
   "PageUp", "PageDown",
   "Insert",  "Delete"

You can't use anything else without recompiling Firefox.

Read this answer in context 👍 1

All Replies (7)

more options

This is the default Firefox Browser hotkeys any changes to this is up to the Addon or 3rd party software to support if there is issues to their changes.

https://support.mozilla.org/en-US/kb/keyboard-shortcuts-perform-firefox-tasks-quickly

Helpful?

more options

The browser extension supports customizable hotkeys. The thing is when I try to type those keys in the firefox about:addons page, inside Manage Extension Shortcuts, I see this screen which I'm attaching to this post. The window does not allow me to type the backtick key or any other key that is not either a number or alphabet.

So I'm basically restricted to using Ctrl + <alphanum> and Ctrl + Alt + <alphanum> .

The extension supports Ctrl + backtick (`) but it appears that this is not enabled and I need to type the shortcut key in Firefox's Manage Extensions Shortcuts options page.

But it isn't allowing me to do that. You can see in my screenshot that I have mapped Ctrl + M and Ctrl + Q to these two shortcuts. But I would like to map something else, preferrably Ctrl + backtick. I even tried Ctrl + { and Ctrl + } but like I said the input box only accepts alphabets and numbers and no other keys.

Helpful?

more options

You said extension that isn't a Firefox Hotkey default.

Helpful?

more options

Yes, please see the title of my original post. This is about extension shortcut keys. I am trying to setup a shortcut key for my extension. I am not trying to reset Firefox's default hotkeys.

Helpful?

more options

Chosen Solution

Here's a list of allowed keys: https://searchfox.org/mozilla-central/source/toolkit/mozapps/extensions/content/shortcuts.js#84

   "0" - "9",
   "A" - "Z",
   F1 - F19,
   "MediaNextTrack", "MediaPlayPause", "MediaPrevTrack", "MediaStop",
   "Up",  "Down", "Left",  "Right",
   "Comma", "Period",
   "Space",
   "Home", "End",
   "PageUp", "PageDown",
   "Insert",  "Delete"

You can't use anything else without recompiling Firefox.

Helpful?

more options

Thanks @TyDraniu! i'll try these and report back. any more keys besides the alphabets would help, i could work with home and end or comma and period. any of those should work.

Helpful?

more options

TyDraniu said

Here's a list of allowed keys: https://searchfox.org/mozilla-central/source/toolkit/mozapps/extensions/content/shortcuts.js#84 "0" - "9", "A" - "Z", F1 - F19, "MediaNextTrack", "MediaPlayPause", "MediaPrevTrack", "MediaStop", "Up", "Down", "Left", "Right", "Comma", "Period", "Space", "Home", "End", "PageUp", "PageDown", "Insert", "Delete" You can't use anything else without recompiling Firefox.

these keys all seem to work. some seem bound to other functions, either Firefox defaults or perhaps some extension. but this really helps, thanks for this!

Helpful?

یک سؤال بپرسید

You must log in to your account to reply to posts. Please start a new question, if you do not have an account yet.