ActivityPub-federated video streaming platform using P2P directly in your web browser
Fix 0-9 player hotkey conflict with web browser
Chocobozzz1c8a9a1d2288
diff --git a/client/src/assets/player/shared/hotkeys/peertube-hotkeys-plugin.ts b/client/src/assets/player/shared/hotkeys/peertube-hotkeys-plugin.tsindex 5920450bdb..8255245b51 100644--- a/client/src/assets/player/shared/hotkeys/peertube-hotkeys-plugin.ts+++ b/client/src/assets/player/shared/hotkeys/peertube-hotkeys-plugin.ts@@ -160,7 +160,7 @@ class PeerTubeHotkeysPlugin extends Plugin {// 0-9 key handlersfor (let i = 0; i < 10; i++) {handlers.push({- accept: e => e.key === i + '',+ accept: e => e.key === i + '' && !e.ctrlKey, // If using ctrl key, it's a web browser hotkeycb: e => {e.preventDefault()