mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
feat(react): add hotkeys (#1241)
This commit is contained in:
@@ -17,6 +17,7 @@ export const CaptionsButton = createMediaButton<CaptionsButtonCore, CaptionsButt
|
||||
stateAttrMap: CaptionsButtonDataAttrs,
|
||||
selector: selectTextTrack,
|
||||
action: (core, state) => core.toggle(state),
|
||||
hotkeyAction: 'toggleSubtitles',
|
||||
});
|
||||
|
||||
export namespace CaptionsButton {
|
||||
|
||||
Reference in New Issue
Block a user