Skip to content

Commit

Permalink
Additional Hotkey to play back video in the subtitle editor
Browse files Browse the repository at this point in the history
Currently, users can not play/pause the video in the subtitle input field. This changes solve this problem by introducing an alternate hotkey `Strg` + `Alt` + `Space` to play and pause videos.

Resolves opencast#901
debenz committed Feb 17, 2023
1 parent 04cddf5 commit 7bb3c4a
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/globalKeys.ts
Original file line number Diff line number Diff line change
@@ -42,6 +42,7 @@ export const videoPlayerKeyMap: KeyMap = {
play: {
name: "keyboardControls.videoPlayButton",
sequence: rewriteKeys("Space"),
sequences: [rewriteKeys("Control+Alt+Space"), "Space"],
action: "keydown",
group: groupVideoPlayer,
},
2 changes: 1 addition & 1 deletion src/main/KeyboardControls.tsx
Original file line number Diff line number Diff line change
@@ -16,7 +16,7 @@ const Group: React.FC<{name: string, entries: KeyMapDisplayOptions[]}> = ({name,
const groupStyle = css({
display: 'flex',
flexDirection: 'column' as const,
width: '420px',
width: '460px',
maxWidth: '50vw',
});

0 comments on commit 7bb3c4a

Please sign in to comment.