Skip to content

Commit

Permalink
chore(shortcuts): right/left/l/j => up/down/left/right
Browse files Browse the repository at this point in the history
  • Loading branch information
mbaraa committed May 27, 2024
1 parent b913264 commit 52afd4d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions static/js/player_shortcuts.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ const shortcuts = {
8: () => (audioPlayerEl.currentTime = audioPlayerEl.duration * 0.8),
9: () => (audioPlayerEl.currentTime = audioPlayerEl.duration * 0.9),
$: () => (audioPlayerEl.currentTime = audioPlayerEl.duration),
j: () => (audioPlayerEl.currentTime -= 10),
l: () => (audioPlayerEl.currentTime += 10),
ArrowRight: () => setVolume(audioPlayerEl.volume + 0.1),
ArrowLeft: () => setVolume(audioPlayerEl.volume - 0.1),
ArrowLeft: () => (audioPlayerEl.currentTime -= 10),
ArrowRight: () => (audioPlayerEl.currentTime += 10),
ArrowUp: () => setVolume(audioPlayerEl.volume + 0.1),
ArrowDown: () => setVolume(audioPlayerEl.volume - 0.1),
i: expand,
I: collapse,
"/": () => searchInputEl.focus(),
Expand Down

0 comments on commit 52afd4d

Please sign in to comment.