Skip to content

Commit

Permalink
Fix cmd+A not working on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
martpie committed Jul 19, 2019
1 parent fbc4aca commit d2a8da4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/ui/components/TracksList/TracksList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,8 @@ export default class TracksList extends React.Component<Props, State> {
let firstSelectedTrackId = tracks.findIndex((track) => selected.includes(track._id));

switch (e.code) {
// CTRL+All selection
case 'KeyA':
if (e.ctrlKey) this.onControlAll(firstSelectedTrackId, tracks);
if (isCtrlKey(e)) this.onControlAll(firstSelectedTrackId, tracks);
break;

case 'ArrowUp':
Expand Down

2 comments on commit d2a8da4

@martpie
Copy link
Owner Author

@martpie martpie commented on d2a8da4 Jul 19, 2019

Choose a reason for hiding this comment

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

You might be interested by this @MrDoctorKovacic, this helper also check for cmd press on macOS

@qcasey
Copy link
Contributor

@qcasey qcasey commented on d2a8da4 Jul 19, 2019

Choose a reason for hiding this comment

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

Thanks, that's good to know!

Please sign in to comment.