Skip to content

Commit

Permalink
Fix shortcuts on non-QWERTY keyboards (fix #818)
Browse files Browse the repository at this point in the history
  • Loading branch information
martpie committed Jan 6, 2025
1 parent f9dfda8 commit a08f42f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/TracksList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,9 @@ export default function TracksList(props: Props) {
selectedTracks.has(track.id),
);

switch (e.code) {
case 'KeyA':
console.log(e.key);
switch (e.key) {
case 'a':
if (isCtrlKey(e)) {
onControlAll(tracks);
e.preventDefault();
Expand Down

0 comments on commit a08f42f

Please sign in to comment.