Add Double tap Ctrl A to select all in tracker
first selects the channel, then all, feels intuitive!
great idea pautomas
@@ -636,7 +636,8 @@ export const SongTracker = ({
}
window.getSelection()?.empty();
- /*/ Select single channel (expose with modifier key?)
+ if (!selectionRect) {
+ // Select single channel
const offset = CHANNEL_FIELDS * channelId;
setSelectionOrigin({ x: offset, y: 0 });
setSelectionRect({
@@ -645,12 +646,13 @@ export const SongTracker = ({
width: 3,
height: 63,
});
- /*/
- /// Select all channels
+ } else {
+ // Select all channels
setSelectionOrigin({ x: 0, y: 0 });
setSelectionRect({x: 0, y: 0, width: 15, height: 63,});
+ }
},
- [channelId]
+ [channelId, selectionRect]
);
useEffect(() => {
