Peertube: Ctrl-number overrides Firefox's default behaviour

Created on 5 Jul 2018  路  4Comments  路  Source: Chocobozzz/PeerTube

  • PeerTube version or URL: https://peertube.touhoppai.moe/videos/watch/2f24f9e0-e91e-40dc-9554-7864d8b9bc0f or any PeerTube video
  • Browser name/version: Firefox 61.0
  • NodeJS version: N/A

  • What is the expected behaviour? When pressing Ctrl and a number n, the default behaviour in Firefox is to switch to tab number n (e.g. if I have three tabs, Ctrl-2 will lead me to the second tab)

  • What do you see instead? When watching a video on PeerTube, Ctrl- will jump to the n/10 part of the video (e.g. Ctrl-5 will jump to the middle of the video).

  • Browser console log if useful (Gist/Pastebin...): N/A

  • Server log if useful (Gist/Pastebin...): N/A
Type

Most helpful comment

Actually, why not just use the number keys without modifiers. This is what YouTube does, although they limit it to the full screen view.

All 4 comments

Maybe we could use letters-only modifiers to like g+1 to go to the beginning of a video. That way we would avoid clashing with browser modifiers.

Actually, why not just use the number keys without modifiers. This is what YouTube does, although they limit it to the full screen view.

I just figured yesterday night that YouTube did what @rezonant describes. This seems good in terms of UX

Related option in the videojs plugin we use for hotkeys is enableModifiersForNumbers as shown in https://github.com/ctd1500/videojs-hotkeys/pull/35.

That's a quick fix then :)

EDIT: Merge Request is here

Was this page helpful?
0 / 5 - 0 ratings

Related issues

filmaidykai picture filmaidykai  路  3Comments

NoraCodes picture NoraCodes  路  3Comments

conferences-gesticulees picture conferences-gesticulees  路  3Comments

Nutomic picture Nutomic  路  3Comments

JohnXLivingston picture JohnXLivingston  路  3Comments