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

搜尋 Mozilla 技術支援網站

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

了解更多

Cannot use "Space Bar" on YouTube search bar - Space instead unwantingly plays/pauses video

  • 2 回覆
  • 1 有這個問題
  • 1 次檢視
  • 最近回覆由 Paul

more options

While the YouTube search bar is focused, I am able to type characters, but anytime I type a character that the video player uses, the corresponding function is invoked. For example, if I type a "k" into the search bar, the video will pause or play, while also typing a "k." More strangely, If I try to type a space into the YouTube search bar, no space is added to the search string, but the video will play/pause.

It almost appears as if Firefox is stuck on focusing the video. I've tried deleting cookies and cache to no avail.

This issue doesn't exist at all in Chrome, and I really don't want to change my default browser over something so small.

While the YouTube search bar is focused, I am able to type characters, but anytime I type a character that the video player uses, the corresponding function is invoked. For example, if I type a "k" into the search bar, the video will pause or play, while also typing a "k." More strangely, If I try to type a space into the YouTube search bar, no space is added to the search string, but the video will play/pause. It almost appears as if Firefox is stuck on focusing the video. I've tried deleting cookies and cache to no avail. This issue doesn't exist at all in Chrome, and I really don't want to change my default browser over something so small.

被選擇的解決方法

Hi

Thank you for flagging up this issue.

YouTube have looked into this and will be correcting the issue shortly.

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

所有回覆 (2)

more options

Looks like a YouTube bug where JavaScript always interprets a space bar press as play/pause and doesn't disable this action when an input field has focus.

See also:


A possible workaround for now is to place this character on the clipboard (i.e. type a space and select it and copy the space to the clipboard) and paste the clipboard content when you need to enter this character. You can possibly use the location bar to get this character on the clipboard.

more options

選擇的解決方法

Hi

Thank you for flagging up this issue.

YouTube have looked into this and will be correcting the issue shortly.