diff options
author | Chocobozzz <me@florianbigard.com> | 2022-05-20 10:06:01 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-05-20 10:06:01 +0200 |
commit | 1c8a9a1d2288247abc3ea7199954db9421bdb7b4 (patch) | |
tree | 4764ebbd5dbd93a2dc8d48db758e4e08a9212f8d /client/src/assets/player/shared | |
parent | 60f013e1031871b7e0913c724f0bd2e569721c8e (diff) | |
download | PeerTube-1c8a9a1d2288247abc3ea7199954db9421bdb7b4.tar.gz PeerTube-1c8a9a1d2288247abc3ea7199954db9421bdb7b4.tar.zst PeerTube-1c8a9a1d2288247abc3ea7199954db9421bdb7b4.zip |
Fix 0-9 player hotkey conflict with web browser
Diffstat (limited to 'client/src/assets/player/shared')
-rw-r--r-- | client/src/assets/player/shared/hotkeys/peertube-hotkeys-plugin.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/src/assets/player/shared/hotkeys/peertube-hotkeys-plugin.ts b/client/src/assets/player/shared/hotkeys/peertube-hotkeys-plugin.ts index 5920450bd..8255245b5 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 { | |||
160 | // 0-9 key handlers | 160 | // 0-9 key handlers |
161 | for (let i = 0; i < 10; i++) { | 161 | for (let i = 0; i < 10; i++) { |
162 | handlers.push({ | 162 | handlers.push({ |
163 | accept: e => e.key === i + '', | 163 | accept: e => e.key === i + '' && !e.ctrlKey, // If using ctrl key, it's a web browser hotkey |
164 | cb: e => { | 164 | cb: e => { |
165 | e.preventDefault() | 165 | e.preventDefault() |
166 | 166 | ||