Mozilla サポートの検索

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.

詳しく学ぶ

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

  • 7 件の返信
  • 0 人がこの問題に困っています
  • 14 回表示
  • 最後の返信者: 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

選ばれた解決策

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.

この回答をすべて読む 👍 1

すべての返信 (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

役に立ちましたか?

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.

役に立ちましたか?

more options

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

役に立ちましたか?

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.

役に立ちましたか?

more options

選ばれた解決策

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.

役に立ちましたか?

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.

役に立ちましたか?

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!

役に立ちましたか?

質問する

投稿に返信するには あなたのアカウントにログイン する必要があります。まだアカウントをお持ちでなければ、新しい質問を開始 してください。