Skip to content

Commit 52bb21d

Browse files
authored
Fix: Disable spacebar shortcut if nohotkeys enabled (muxinc#1173)
Fixes muxinc#879 ## Changes Added `inert` in MuxPlayer's template to disable shortcuts when `nohotkeys` is enabled
1 parent 47da142 commit 52bb21d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/mux-player/src/template.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ export const content = (props: MuxTemplateProps) => html`
110110
>
111111
<mux-video
112112
slot="media"
113+
inert="${props.noHotKeys ?? false}"
113114
target-live-window="${props.targetLiveWindow ?? false}"
114115
stream-type="${getStreamTypeFromAttr(props.streamType) ?? false}"
115116
crossorigin="${props.crossOrigin ?? ''}"

0 commit comments

Comments
 (0)