为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

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!

有帮助吗?

我要提问

您需要登录才能回复。如果您还没账号,可以提出新问题