Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

How do you unbind a keyboard shortcut so that a website handles it, as opposed to Firefox?

more options

The specific instance I'm interested in is the shortcut "Ctrl + Shift + Page Down/Up" which moves the active tab left or right. When using Google Sheets, the keyboard shortcut is used to switch between sheets, which is extremely useful.

So, is there a way to disable the Ctrl+Shift+Page Down/Up shortcut for http://docs.google.com/spreadsheets/*? If not, is there potential to adding such a feature?

The specific instance I'm interested in is the shortcut "Ctrl + Shift + Page Down/Up" which moves the active tab left or right. When using Google Sheets, the keyboard shortcut is used to switch between sheets, which is extremely useful. So, is there a way to disable the Ctrl+Shift+Page Down/Up shortcut for http://docs.google.com/spreadsheets/*? If not, is there potential to adding such a feature?

所有回覆 (3)

more options

Hi, not that I know of, though possibly lost something that told me. As far as I know nothing at this time unbinds as you call it default keyboard shortcuts. Though I have not completely looked at this :

Though it maybe possible to do something with scripts but am not sure on that.

more options

There is an entry in the bug tracking system about allowing add-ons to override built-in keyboard shortcuts, so perhaps websites also could do that. Actually, they can preempt some of them already, but not all of them.

more options

Hmm, in the following test page, Firefox is not dispatching the keydown or keypress events for Ctrl+Shift+PageDown or Ctrl+Shift+PageUp, so the site cannot cancel the default navigation. It still could detect the keyup event for this combination and do something, but the tab would still be moved on the Tabs bar.

https://www.jeffersonscher.com/res/keyvents.html