搜尋 Mozilla 技術支援網站

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

Learn More

Why do tabs and windows sometimes ignore the keyboard shortcut (CMD+W)? I keep having to go to File>Close Tab

  • 5 回覆
  • 13 有這個問題
  • 2380 次檢視
  • 最近回覆由 lillimann5

more options

Tabs in Firefox seem to ignore my commands sometimes, seemingly on random. Maybe more so when the tab contains a video, although I could be mistaken.

I'm using a 13-inch, Mid-2009 Macbook Pro running OSX 10.10.2 (the latest build.), but this also happens on my stepdad's 17-inch, Early-2008 Macbook Pro as well.

被選擇的解決方法

If a plugin like Flash has focus then the plugin receives all key presses and you would have to click outside the plugin to remove the focus from the plugin and make the keyboard work again. I don't think that protected mode for Flash applies to Mac.

On Mac you may also not have the possibility to switch to the HTML5 media player as an alternative because with this player the keyboard shortcuts will function.

從原來的回覆中察看解決方案 👍 1

所有回覆 (5)

more options

Start Firefox in Safe Mode {web Link} by holding down the <Shift>
(Mac Options)
key, and then starting Firefox. Is the problem still there?

more options

I think the most common reason would be a plugin intercepting the keyboard. This can happen if you use the controls on a Flash video, for example.

This is copy/pasted from an old post:

Over the past couple of years, users have noticed that the Flash player on YouTube was particularly "sticky" or tenacious when it came to capturing keyboard focus.

Last time I looked into this, about a year ago, I posted this summary of previously mentioned workarounds:

(1) Full screen the video and then switch back

press f then Esc - focus will move back to the page

(2) Switch to another application window and then back {WINDOWS}

press Alt+tab then Alt+tab - focus will move back to the page

(3) Click on a different tab then click back - focus will move back to the page

Some users also reported that the YouTube player behaves normally (i.e., clicking the page regains control) if you disable the Flash Player plugin's protected mode feature. There is now a hidden preference for this:

(A) In a new tab, type or paste about:config in the address bar and press Enter. Click the button promising to be careful.

(B) In the search box above the list, type or paste flash and pause while the list is filtered

(C) Double-click the dom.ipc.plugins.flash.disable-protected-mode preference to switch its value from false to true.

This might not take effect until all Flash has been unloaded for a few minutes, or you close Firefox.

由 jscher2000 於 修改

more options

選擇的解決方法

If a plugin like Flash has focus then the plugin receives all key presses and you would have to click outside the plugin to remove the focus from the plugin and make the keyboard work again. I don't think that protected mode for Flash applies to Mac.

On Mac you may also not have the possibility to switch to the HTML5 media player as an alternative because with this player the keyboard shortcuts will function.

more options

I think these will help you out;

Close Tab by Double Click {web link} Allows you to close tabs by double-clicking on them.


Rights To Close {web link} Right double-click anywhere on web page to close current tab.

由 FredMcD 於 修改

more options

That's it! Thank you for the assistance.