Selaa lähdekoodia

Hint for shortcut for moving the visible area (#1784)

Kostas Bariotis 5 vuotta sitten
vanhempi
commit
a357d00bbe
2 muutettua tiedostoa jossa 9 lisäystä ja 0 poistoa
  1. 8 0
      src/components/ShortcutsDialog.tsx
  2. 1 0
      src/locales/en.json

+ 8 - 0
src/components/ShortcutsDialog.tsx

@@ -256,6 +256,14 @@ export const ShortcutsDialog = ({ onClose }: { onClose?: () => void }) => {
                 shortcuts={[getShortcutKey("CtrlOrCmd+A")]}
               />
               <Shortcut
+                label={t("labels.moveCanvas")}
+                shortcuts={[
+                  getShortcutKey(`Space+${t("shortcutsDialog.drag")}`),
+                  getShortcutKey(`Wheel+${t("shortcutsDialog.drag")}`),
+                ]}
+                isOr={true}
+              />
+              <Shortcut
                 label={t("labels.copy")}
                 shortcuts={[getShortcutKey("CtrlOrCmd+C")]}
               />

+ 1 - 0
src/locales/en.json

@@ -2,6 +2,7 @@
   "labels": {
     "paste": "Paste",
     "selectAll": "Select all",
+    "moveCanvas": "Move canvas",
     "copy": "Copy",
     "copyAsPng": "Copy to clipboard as PNG",
     "copyAsSvg": "Copy to clipboard as SVG",