Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Play/pause using "k"

Chocobozzzed8f96354fc3
diff --git a/client/src/standalone/player/src/shared/hotkeys/peertube-hotkeys-plugin.ts b/client/src/standalone/player/src/shared/hotkeys/peertube-hotkeys-plugin.ts
index 6b88983a79..d1bcf28100 100644
--- a/client/src/standalone/player/src/shared/hotkeys/peertube-hotkeys-plugin.ts
+++ b/client/src/standalone/player/src/shared/hotkeys/peertube-hotkeys-plugin.ts
@@ -50,7 +50,7 @@ class PeerTubeHotkeysPlugin extends Plugin {
const handlers: KeyHandler[] = [
// Play
{
- accept: e => (e.key === ' ' || e.key === 'MediaPlayPause'),
+ accept: e => (e.key === ' ' || e.key === 'MediaPlayPause' || this.isNaked(e, 'k')),
cb: e => {
e.preventDefault()
e.stopPropagation()