From 1c8a9a1d2288247abc3ea7199954db9421bdb7b4 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 20 May 2022 10:06:01 +0200 Subject: Fix 0-9 player hotkey conflict with web browser --- client/src/assets/player/shared/hotkeys/peertube-hotkeys-plugin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client/src/assets') 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 { // 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() -- cgit v1.2.3