Skip to content

Commit ab48e45

Browse files
committed
feat: update hotkey mapping
1 parent 3d4c6ff commit ab48e45

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/features/editor/views/GraphView/ZoomControl.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ export const ZoomControl = () => {
1616
[
1717
["mod+[plus]", () => zoomIn, { usePhysicalKeys: true }],
1818
["mod+[minus]", () => zoomOut, { usePhysicalKeys: true }],
19-
["shift+Digit1", centerView, { usePhysicalKeys: true }],
20-
["shift+Digit2", focusFirstNode, { usePhysicalKeys: true }],
19+
["shift+Digit1", focusFirstNode, { usePhysicalKeys: true }],
20+
["shift+Digit2", centerView, { usePhysicalKeys: true }],
2121
],
2222
[]
2323
);
@@ -40,7 +40,7 @@ export const ZoomControl = () => {
4040
<Flex fz="xs" gap="md">
4141
<Text fz="xs">Center first item</Text>
4242
<Text fz="xs" c="dimmed">
43-
2
43+
1
4444
</Text>
4545
</Flex>
4646
}
@@ -63,7 +63,7 @@ export const ZoomControl = () => {
6363
<Flex fz="xs" gap="md">
6464
<Text fz="xs">Fit to center</Text>
6565
<Text fz="xs" c="dimmed">
66-
1
66+
2
6767
</Text>
6868
</Flex>
6969
}

0 commit comments

Comments
 (0)