Fix 0-9 player hotkey conflict with web browser

pull/5004/head
Chocobozzz 2022-05-20 10:06:01 +02:00
parent 60f013e103
commit 1c8a9a1d22
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 1 additions and 1 deletions

View File

@ -160,7 +160,7 @@ class PeerTubeHotkeysPlugin extends Plugin {
// 0-9 key handlers
for (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 hotkey
cb: e => {
e.preventDefault()