Skip to content

Conversation

@HalBenHB
Copy link

fix: allow virtual keystroke simulation that sends mixed event structures for playback speed control. PlaybackRateController now check both event.key and event.code from a list so that multiple key variances can be added for different keyboard layouts.Commited

Closes #53

…ures for playback speed control. PlaybackRateController now check both event.key and event.code from a list so that multiple key variances can be added for different keyboard layouts.Commited

Closes gmertes#53
Comment on lines 44 to 45
if (allowedEventCodes.playbackRateDecreaserKeys.includes(t.code) || allowedEventKeys.playbackRateDecreaserKeys.includes(t.key)) playbackRate -= 0.1;
else if (allowedEventCodes.playbackRateIncreaserKeys.includes(t.code) || allowedEventKeys.playbackRateIncreaserKeys.includes(t.key)) playbackRate += 0.1;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That should be evt.code and evt.key

Copy link
Owner

@gmertes gmertes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@gmertes gmertes merged commit 870a62c into gmertes:master Apr 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ ] doesn't change speed when prompted by X-Mouse Button Control

2 participants