Skip to content

Commit

Permalink
custom hotkey time
Browse files Browse the repository at this point in the history
  • Loading branch information
Interstellar750 committed Feb 15, 2023
1 parent 26783c9 commit ea40d5c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@ export const Footer: React.FC = () => {
if (["ArrowLeft", "KeyA", "KeyH", "Left", "A", "a", "H", "h"].includes(codeOrKey)) {
ev.preventDefault();

audioRef.step(ev, -5);
audioRef.step(ev, -3);
} else if (["ArrowRight", "KeyD", "KeyL", "Right", "D", "d", "L", "l"].includes(codeOrKey)) {
ev.preventDefault();

audioRef.step(ev, 5);
audioRef.step(ev, 3);
} else if (code === "KeyR" || key === "R" || key === "r") {
ev.preventDefault();

Expand Down
4 changes: 2 additions & 2 deletions src/components/synchronizer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,13 +134,13 @@ export const Synchronizer: React.FC<ISynchronizerProps> = ({ state, dispatch })

if (code === "Minus" || key === "-" || key === "_") {
ev.preventDefault();
adjust(ev, -0.5, selectIndex);
adjust(ev, -0.1, selectIndex);
return;
}

if (code === "Equal" || key === "+" || key === "=") {
ev.preventDefault();
adjust(ev, 0.5, selectIndex);
adjust(ev, 0.1, selectIndex);
return;
}

Expand Down

1 comment on commit ea40d5c

@vercel
Copy link

@vercel vercel bot commented on ea40d5c Feb 15, 2023

Choose a reason for hiding this comment

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

Please sign in to comment.