Skip to content

Commit

Permalink
Change tab to alt key for selecting
Browse files Browse the repository at this point in the history
  • Loading branch information
blaumeise20 committed Aug 29, 2024
1 parent a3abb2a commit b958c5c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/ui/editor/CellGridViewer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import type { CellGrid } from "@core/grid/cellGrid";
import { onMount } from "svelte";
import { Tile } from "@core/tiles";
import { keys, modifiers, on } from "../keys";
import { keys, keys$, modifiers, on } from "../keys";
import { mouse } from "@utils/mouse";
import { Off, Pos, toPos } from "@core/coord/positions";
import { Size } from "@core/coord/size";
Expand Down Expand Up @@ -186,8 +186,6 @@
Math.round(mousePosition.y - pasteboard.size.height / 2)
) : Pos(0, 0);
const tabKey = on("tab").observe();
// selection clipboard: cut/copy/paste
on("x").and(modifiers.cmdOrCtrl).when(() => showSelectionBox).down(() => {
$clipboard = grid.cloneArea(selectionSize);
Expand Down Expand Up @@ -270,7 +268,7 @@
mouseButton = e.button;
mouseAnchor.x = Math.floor(mousePosition.x);
mouseAnchor.y = Math.floor(mousePosition.y);
showSelectionBox = $tabKey;
showSelectionBox = $keys$.alt;
if (showSelectionBox) placeCell = false;
}
}
Expand Down

0 comments on commit b958c5c

Please sign in to comment.