Skip to content
This repository has been archived by the owner on Apr 5, 2024. It is now read-only.

Commit

Permalink
Fix changes from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-chao committed Aug 22, 2018
1 parent f617da4 commit a06c95a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/components/KeyboardInteraction/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,19 @@ class KeyboardInteractionInner extends Component<Props> {
return; // Do nothing if the event was already processed
}

if (e.altKey || e.ctrlKey || e.shiftKey || e.metaKey) {
return;
}

switch (e.code) {
case 'ArrowLeft':
case 'KeyH':
if (!e.altKey){
this.props.previousSong();
}
this.props.previousSong();
break;

case 'ArrowRight':
case 'KeyL':
if (!e.altKey){
this.props.nextSong();
}
this.props.nextSong();
break;

case 'Space':
Expand Down

0 comments on commit a06c95a

Please sign in to comment.