Skip to content

Commit

Permalink
add ctrl modifier for track groups
Browse files Browse the repository at this point in the history
  • Loading branch information
ALevansSamsung committed Dec 2, 2024
1 parent d0aae3c commit 217fa27
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ui/src/frontend/track_group_panel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,10 @@ export class TrackGroupPanel extends Panel<Attrs> {
m(`.shell[draggable=true]`,
{
onclick: (e: MouseEvent) => {
if (!e.ctrlKey) {
globals.dispatch(
Actions.clearTrackAndGroupSelection({}));
}
globals.dispatch(
Actions.toggleTrackGroupSelection(
{trackGroupId: attrs.trackGroupId}));
Expand Down

0 comments on commit 217fa27

Please sign in to comment.