Skip to content

Commit cd9eb42

Browse files
authored
fix(player): < and > have no effect on playback speed (#1494)
Closes #1463
1 parent de90f1a commit cd9eb42

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

packages/vidstack/src/core/keyboard/controller.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,9 @@ export class MediaKeyboardController extends MediaPlayerController {
222222

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

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

0 commit comments

Comments
 (0)