Skip to content

Commit

Permalink
fix(player): < and > have no effect on playback speed
Browse files Browse the repository at this point in the history
  • Loading branch information
alopatindev committed Nov 1, 2024
1 parent 41336a8 commit 7fb4b66
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/vidstack/src/core/keyboard/controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,9 @@ export class MediaKeyboardController extends MediaPlayerController {

return combinations?.some((combo) => {
const modifierKeys = new Set(combo.filter((key) => MODIFIER_KEYS.has(key)));
if ('<>'.includes(event.key)) {
modifierKeys.add('Shift');
}

// Check whether a modifier key was pressed that's not part of this combination.
for (const modKey of MODIFIER_KEYS) {
Expand Down

0 comments on commit 7fb4b66

Please sign in to comment.