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

Commit

Permalink
Merge pull request #63 from chris-chao/chris-chao/ignore-keyboard-mod…
Browse files Browse the repository at this point in the history
…ifier

[#60] ignore left/right arrow action triggers if user is holding down alt key
  • Loading branch information
0xcaff authored Sep 1, 2018
2 parents 0ce126e + 3f8c7de commit 7d62861
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/KeyboardInteraction/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ 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':
Expand Down

0 comments on commit 7d62861

Please sign in to comment.