@myoc/excalidraw 0.19.505 → 0.19.506

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/dev/index.js CHANGED
@@ -64,7 +64,7 @@ import {
64
64
  serializeAsJSON,
65
65
  serializeLibraryAsJSON,
66
66
  strokeRectWithRotation_simple
67
- } from "./chunk-D5OSJVKD.js";
67
+ } from "./chunk-CUCA2WKB.js";
68
68
  import {
69
69
  define_import_meta_env_default
70
70
  } from "./chunk-KCN2IL3S.js";
@@ -110,12 +110,12 @@ import {
110
110
  } from "@excalidraw/math";
111
111
  import {
112
112
  COLOR_PALETTE as COLOR_PALETTE7,
113
- CODES as CODES13,
113
+ CODES as CODES11,
114
114
  shouldResizeFromCenter,
115
115
  shouldMaintainAspectRatio,
116
116
  shouldRotateWithDiscreteAngle as shouldRotateWithDiscreteAngle3,
117
117
  isArrowKey as isArrowKey2,
118
- KEYS as KEYS53,
118
+ KEYS as KEYS51,
119
119
  APP_NAME as APP_NAME2,
120
120
  CURSOR_TYPE as CURSOR_TYPE4,
121
121
  DEFAULT_MAX_IMAGE_WIDTH_OR_HEIGHT,
@@ -9502,7 +9502,7 @@ var exportCanvas = async (type, elements, appState, files, {
9502
9502
  let blob = canvasToBlob(tempCanvas);
9503
9503
  if (appState.exportEmbedScene) {
9504
9504
  blob = blob.then(
9505
- (blob2) => import("./data/image-KFKBCMAI.js").then(
9505
+ (blob2) => import("./data/image-KG7C5ZXU.js").then(
9506
9506
  ({ encodePngMetadata: encodePngMetadata2 }) => encodePngMetadata2({
9507
9507
  blob: blob2,
9508
9508
  metadata: serializeAsJSON(elements, appState, files, "local")
@@ -9951,8 +9951,6 @@ import {
9951
9951
  DEFAULT_FONT_SIZE as DEFAULT_FONT_SIZE2,
9952
9952
  DEFAULT_FONT_FAMILY as DEFAULT_FONT_FAMILY2,
9953
9953
  DEFAULT_TEXT_ALIGN,
9954
- CODES as CODES3,
9955
- KEYS as KEYS16,
9956
9954
  getLineHeight as getLineHeight2
9957
9955
  } from "@excalidraw/common";
9958
9956
  import { newElementWith as newElementWith4 } from "@excalidraw/element";
@@ -9997,8 +9995,7 @@ var actionCopyStyles = register({
9997
9995
  },
9998
9996
  captureUpdate: CaptureUpdateAction10.EVENTUALLY
9999
9997
  };
10000
- },
10001
- keyTest: (event) => event[KEYS16.CTRL_OR_CMD] && event.altKey && event.code === CODES3.C
9998
+ }
10002
9999
  });
10003
10000
  var actionPasteStyles = register({
10004
10001
  name: "pasteStyles",
@@ -10074,12 +10071,11 @@ var actionPasteStyles = register({
10074
10071
  }),
10075
10072
  captureUpdate: CaptureUpdateAction10.IMMEDIATELY
10076
10073
  };
10077
- },
10078
- keyTest: (event) => event[KEYS16.CTRL_OR_CMD] && event.altKey && event.code === CODES3.V
10074
+ }
10079
10075
  });
10080
10076
 
10081
10077
  // actions/actionMenu.tsx
10082
- import { KEYS as KEYS17 } from "@excalidraw/common";
10078
+ import { KEYS as KEYS16 } from "@excalidraw/common";
10083
10079
  import { CaptureUpdateAction as CaptureUpdateAction11 } from "@excalidraw/element";
10084
10080
  var actionShortcuts = register({
10085
10081
  name: "toggleShortcuts",
@@ -10103,7 +10099,7 @@ var actionShortcuts = register({
10103
10099
  captureUpdate: CaptureUpdateAction11.EVENTUALLY
10104
10100
  };
10105
10101
  },
10106
- keyTest: (event) => event.key === KEYS17.QUESTION_MARK
10102
+ keyTest: (event) => event.key === KEYS16.QUESTION_MARK
10107
10103
  });
10108
10104
 
10109
10105
  // actions/actionGroup.tsx
@@ -10119,7 +10115,7 @@ import {
10119
10115
  removeElementsFromFrame,
10120
10116
  replaceAllElementsInFrame
10121
10117
  } from "@excalidraw/element";
10122
- import { KEYS as KEYS18, randomId, arrayToMap as arrayToMap6 } from "@excalidraw/common";
10118
+ import { KEYS as KEYS17, randomId, arrayToMap as arrayToMap6 } from "@excalidraw/common";
10123
10119
  import {
10124
10120
  getSelectedGroupIds,
10125
10121
  selectGroup,
@@ -10247,7 +10243,7 @@ var actionGroup = register({
10247
10243
  };
10248
10244
  },
10249
10245
  predicate: (elements, appState, _, app) => enableActionGroup(elements, appState, app),
10250
- keyTest: (event) => !event.shiftKey && event[KEYS18.CTRL_OR_CMD] && event.key === KEYS18.G,
10246
+ keyTest: (event) => !event.shiftKey && event[KEYS17.CTRL_OR_CMD] && event.key === KEYS17.G,
10251
10247
  PanelComponent: ({ elements, appState, updateData, app }) => /* @__PURE__ */ jsx43(
10252
10248
  ToolButton,
10253
10249
  {
@@ -10338,7 +10334,7 @@ var actionUngroup = register({
10338
10334
  captureUpdate: CaptureUpdateAction12.IMMEDIATELY
10339
10335
  };
10340
10336
  },
10341
- keyTest: (event) => event.shiftKey && event[KEYS18.CTRL_OR_CMD] && event.key === KEYS18.G.toUpperCase(),
10337
+ keyTest: (event) => event.shiftKey && event[KEYS17.CTRL_OR_CMD] && event.key === KEYS17.G.toUpperCase(),
10342
10338
  predicate: (elements, appState) => getSelectedGroupIds(appState).length > 0,
10343
10339
  PanelComponent: ({ elements, appState, updateData }) => /* @__PURE__ */ jsx43(
10344
10340
  ToolButton,
@@ -10778,7 +10774,7 @@ var actionAddToLibrary = register({
10778
10774
  import { getNonDeletedElements as getNonDeletedElements9 } from "@excalidraw/element";
10779
10775
  import { isFrameLikeElement as isFrameLikeElement5 } from "@excalidraw/element";
10780
10776
  import { updateFrameMembershipOfSelectedElements } from "@excalidraw/element";
10781
- import { KEYS as KEYS19, arrayToMap as arrayToMap7 } from "@excalidraw/common";
10777
+ import { KEYS as KEYS18, arrayToMap as arrayToMap7 } from "@excalidraw/common";
10782
10778
  import { alignElements } from "@excalidraw/element";
10783
10779
  import { CaptureUpdateAction as CaptureUpdateAction15 } from "@excalidraw/element";
10784
10780
  import { getSelectedElementsByGroup } from "@excalidraw/element";
@@ -10823,7 +10819,7 @@ var actionAlignTop = register({
10823
10819
  captureUpdate: CaptureUpdateAction15.IMMEDIATELY
10824
10820
  };
10825
10821
  },
10826
- keyTest: (event) => event[KEYS19.CTRL_OR_CMD] && event.shiftKey && event.key === KEYS19.ARROW_UP,
10822
+ keyTest: (event) => event[KEYS18.CTRL_OR_CMD] && event.shiftKey && event.key === KEYS18.ARROW_UP,
10827
10823
  PanelComponent: ({ elements, appState, updateData, app }) => /* @__PURE__ */ jsx46(
10828
10824
  ToolButton,
10829
10825
  {
@@ -10855,7 +10851,7 @@ var actionAlignBottom = register({
10855
10851
  captureUpdate: CaptureUpdateAction15.IMMEDIATELY
10856
10852
  };
10857
10853
  },
10858
- keyTest: (event) => event[KEYS19.CTRL_OR_CMD] && event.shiftKey && event.key === KEYS19.ARROW_DOWN,
10854
+ keyTest: (event) => event[KEYS18.CTRL_OR_CMD] && event.shiftKey && event.key === KEYS18.ARROW_DOWN,
10859
10855
  PanelComponent: ({ elements, appState, updateData, app }) => /* @__PURE__ */ jsx46(
10860
10856
  ToolButton,
10861
10857
  {
@@ -10887,7 +10883,7 @@ var actionAlignLeft = register({
10887
10883
  captureUpdate: CaptureUpdateAction15.IMMEDIATELY
10888
10884
  };
10889
10885
  },
10890
- keyTest: (event) => event[KEYS19.CTRL_OR_CMD] && event.shiftKey && event.key === KEYS19.ARROW_LEFT,
10886
+ keyTest: (event) => event[KEYS18.CTRL_OR_CMD] && event.shiftKey && event.key === KEYS18.ARROW_LEFT,
10891
10887
  PanelComponent: ({ elements, appState, updateData, app }) => /* @__PURE__ */ jsx46(
10892
10888
  ToolButton,
10893
10889
  {
@@ -10919,7 +10915,7 @@ var actionAlignRight = register({
10919
10915
  captureUpdate: CaptureUpdateAction15.IMMEDIATELY
10920
10916
  };
10921
10917
  },
10922
- keyTest: (event) => event[KEYS19.CTRL_OR_CMD] && event.shiftKey && event.key === KEYS19.ARROW_RIGHT,
10918
+ keyTest: (event) => event[KEYS18.CTRL_OR_CMD] && event.shiftKey && event.key === KEYS18.ARROW_RIGHT,
10923
10919
  PanelComponent: ({ elements, appState, updateData, app }) => /* @__PURE__ */ jsx46(
10924
10920
  ToolButton,
10925
10921
  {
@@ -10997,7 +10993,7 @@ var actionAlignHorizontallyCentered = register({
10997
10993
  // actions/actionDistribute.tsx
10998
10994
  import { getNonDeletedElements as getNonDeletedElements10 } from "@excalidraw/element";
10999
10995
  import { isFrameLikeElement as isFrameLikeElement6 } from "@excalidraw/element";
11000
- import { CODES as CODES4, KEYS as KEYS20, arrayToMap as arrayToMap8 } from "@excalidraw/common";
10996
+ import { CODES as CODES3, KEYS as KEYS19, arrayToMap as arrayToMap8 } from "@excalidraw/common";
11001
10997
  import { updateFrameMembershipOfSelectedElements as updateFrameMembershipOfSelectedElements2 } from "@excalidraw/element";
11002
10998
  import { distributeElements } from "@excalidraw/element";
11003
10999
  import { CaptureUpdateAction as CaptureUpdateAction16 } from "@excalidraw/element";
@@ -11042,7 +11038,7 @@ var distributeHorizontally = register({
11042
11038
  captureUpdate: CaptureUpdateAction16.IMMEDIATELY
11043
11039
  };
11044
11040
  },
11045
- keyTest: (event) => !event[KEYS20.CTRL_OR_CMD] && event.altKey && event.code === CODES4.H,
11041
+ keyTest: (event) => !event[KEYS19.CTRL_OR_CMD] && event.altKey && event.code === CODES3.H,
11046
11042
  PanelComponent: ({ elements, appState, updateData, app }) => /* @__PURE__ */ jsx47(
11047
11043
  ToolButton,
11048
11044
  {
@@ -11072,7 +11068,7 @@ var distributeVertically = register({
11072
11068
  captureUpdate: CaptureUpdateAction16.IMMEDIATELY
11073
11069
  };
11074
11070
  },
11075
- keyTest: (event) => !event[KEYS20.CTRL_OR_CMD] && event.altKey && event.code === CODES4.V,
11071
+ keyTest: (event) => !event[KEYS19.CTRL_OR_CMD] && event.altKey && event.code === CODES3.V,
11076
11072
  PanelComponent: ({ elements, appState, updateData, app }) => /* @__PURE__ */ jsx47(
11077
11073
  ToolButton,
11078
11074
  {
@@ -11088,7 +11084,7 @@ var distributeVertically = register({
11088
11084
  });
11089
11085
 
11090
11086
  // actions/actionArrange.tsx
11091
- import { arrayToMap as arrayToMap9, KEYS as KEYS21, matchKey } from "@excalidraw/common";
11087
+ import { arrayToMap as arrayToMap9, KEYS as KEYS20, matchKey } from "@excalidraw/common";
11092
11088
  import { CaptureUpdateAction as CaptureUpdateAction17 } from "@excalidraw/element";
11093
11089
  import { updateFrameMembershipOfSelectedElements as updateFrameMembershipOfSelectedElements3 } from "@excalidraw/element/frame";
11094
11090
  import { arrangeElements } from "@excalidraw/element/arrange";
@@ -11156,7 +11152,7 @@ var actionArrangeElements = register({
11156
11152
  captureUpdate: CaptureUpdateAction17.IMMEDIATELY
11157
11153
  };
11158
11154
  },
11159
- keyTest: (event) => event.shiftKey && matchKey(event, KEYS21.R),
11155
+ keyTest: (event) => event.shiftKey && matchKey(event, KEYS20.R),
11160
11156
  PanelComponent: ({ updateData }) => /* @__PURE__ */ jsx48(
11161
11157
  "button",
11162
11158
  {
@@ -11233,7 +11229,7 @@ import { deepCopyElement as deepCopyElement3 } from "@excalidraw/element";
11233
11229
  import { resizeMultipleElements } from "@excalidraw/element";
11234
11230
  import { isArrowElement as isArrowElement3, isElbowArrow as isElbowArrow3 } from "@excalidraw/element";
11235
11231
  import { updateFrameMembershipOfSelectedElements as updateFrameMembershipOfSelectedElements5 } from "@excalidraw/element";
11236
- import { CODES as CODES5, KEYS as KEYS22, arrayToMap as arrayToMap11 } from "@excalidraw/common";
11232
+ import { CODES as CODES4, KEYS as KEYS21, arrayToMap as arrayToMap11 } from "@excalidraw/common";
11237
11233
  import { CaptureUpdateAction as CaptureUpdateAction19 } from "@excalidraw/element";
11238
11234
  var actionFlipHorizontal = register({
11239
11235
  name: "flipHorizontal",
@@ -11257,7 +11253,7 @@ var actionFlipHorizontal = register({
11257
11253
  captureUpdate: CaptureUpdateAction19.IMMEDIATELY
11258
11254
  };
11259
11255
  },
11260
- keyTest: (event) => event.shiftKey && event.code === CODES5.H
11256
+ keyTest: (event) => event.shiftKey && event.code === CODES4.H
11261
11257
  });
11262
11258
  var actionFlipVertical = register({
11263
11259
  name: "flipVertical",
@@ -11281,7 +11277,7 @@ var actionFlipVertical = register({
11281
11277
  captureUpdate: CaptureUpdateAction19.IMMEDIATELY
11282
11278
  };
11283
11279
  },
11284
- keyTest: (event) => event.shiftKey && event.code === CODES5.V && !event[KEYS22.CTRL_OR_CMD]
11280
+ keyTest: (event) => event.shiftKey && event.code === CODES4.V && !event[KEYS21.CTRL_OR_CMD]
11285
11281
  });
11286
11282
  var flipSelectedElements = (elements, elementsMap, appState, flipDirection, app) => {
11287
11283
  const selectedElements = getSelectedElements(
@@ -11363,7 +11359,7 @@ var flipElements = (selectedElements, elementsMap, flipDirection, app) => {
11363
11359
  // actions/actionClipboard.tsx
11364
11360
  import { isTextElement as isTextElement4 } from "@excalidraw/element";
11365
11361
  import { getTextFromElements } from "@excalidraw/element";
11366
- import { CODES as CODES6, KEYS as KEYS23, isFirefox as isFirefox2 } from "@excalidraw/common";
11362
+ import { CODES as CODES5, KEYS as KEYS22, isFirefox as isFirefox2 } from "@excalidraw/common";
11367
11363
  import { CaptureUpdateAction as CaptureUpdateAction20 } from "@excalidraw/element";
11368
11364
  var actionCopy = register({
11369
11365
  name: "copy",
@@ -11452,7 +11448,7 @@ var actionCut = register({
11452
11448
  actionCopy.perform(elements, appState, event, app);
11453
11449
  return actionDeleteSelected.perform(elements, appState, null, app);
11454
11450
  },
11455
- keyTest: (event) => event[KEYS23.CTRL_OR_CMD] && event.key === KEYS23.X
11451
+ keyTest: (event) => event[KEYS22.CTRL_OR_CMD] && event.key === KEYS22.X
11456
11452
  });
11457
11453
  var actionCopyAsSvg = register({
11458
11454
  name: "copyAsSvg",
@@ -11566,7 +11562,7 @@ var actionCopyAsPng = register({
11566
11562
  predicate: (elements) => {
11567
11563
  return probablySupportsClipboardBlob && elements.length > 0;
11568
11564
  },
11569
- keyTest: (event) => event.code === CODES6.C && event.altKey && event.shiftKey,
11565
+ keyTest: (event) => event.code === CODES5.C && event.altKey && event.shiftKey,
11570
11566
  keywords: ["png", "clipboard", "copy"]
11571
11567
  });
11572
11568
  var copyText = register({
@@ -11597,7 +11593,7 @@ var copyText = register({
11597
11593
  });
11598
11594
 
11599
11595
  // actions/actionToggleGridMode.tsx
11600
- import { CODES as CODES7, KEYS as KEYS24 } from "@excalidraw/common";
11596
+ import { CODES as CODES6, KEYS as KEYS23 } from "@excalidraw/common";
11601
11597
  import { CaptureUpdateAction as CaptureUpdateAction21 } from "@excalidraw/element";
11602
11598
  var actionToggleGridMode = register({
11603
11599
  name: "gridMode",
@@ -11623,11 +11619,10 @@ var actionToggleGridMode = register({
11623
11619
  predicate: (element, appState, props) => {
11624
11620
  return props.gridModeEnabled === void 0;
11625
11621
  },
11626
- keyTest: (event) => event[KEYS24.CTRL_OR_CMD] && event.code === CODES7.QUOTE
11622
+ keyTest: (event) => event[KEYS23.CTRL_OR_CMD] && event.code === CODES6.QUOTE
11627
11623
  });
11628
11624
 
11629
11625
  // actions/actionToggleZenMode.tsx
11630
- import { CODES as CODES8, KEYS as KEYS25 } from "@excalidraw/common";
11631
11626
  import { CaptureUpdateAction as CaptureUpdateAction22 } from "@excalidraw/element";
11632
11627
  var actionToggleZenMode = register({
11633
11628
  name: "zenMode",
@@ -11650,12 +11645,11 @@ var actionToggleZenMode = register({
11650
11645
  checked: (appState) => appState.zenModeEnabled,
11651
11646
  predicate: (elements, appState, appProps, app) => {
11652
11647
  return app.editorInterface.formFactor !== "phone" && typeof appProps.zenModeEnabled === "undefined";
11653
- },
11654
- keyTest: (event) => !event[KEYS25.CTRL_OR_CMD] && event.altKey && event.code === CODES8.Z
11648
+ }
11655
11649
  });
11656
11650
 
11657
11651
  // actions/actionToggleObjectsSnapMode.tsx
11658
- import { CODES as CODES9, KEYS as KEYS26 } from "@excalidraw/common";
11652
+ import { CODES as CODES7, KEYS as KEYS24 } from "@excalidraw/common";
11659
11653
  import { CaptureUpdateAction as CaptureUpdateAction23 } from "@excalidraw/element";
11660
11654
  var actionToggleObjectsSnapMode = register({
11661
11655
  name: "objectsSnapMode",
@@ -11680,7 +11674,7 @@ var actionToggleObjectsSnapMode = register({
11680
11674
  predicate: (elements, appState, appProps) => {
11681
11675
  return typeof appProps.objectsSnapModeEnabled === "undefined";
11682
11676
  },
11683
- keyTest: (event) => !event[KEYS26.CTRL_OR_CMD] && event.altKey && event.code === CODES9.S
11677
+ keyTest: (event) => !event[KEYS24.CTRL_OR_CMD] && event.altKey && event.code === CODES7.S
11684
11678
  });
11685
11679
 
11686
11680
  // actions/actionToggleArrowBinding.tsx
@@ -11730,7 +11724,7 @@ var actionToggleMidpointSnapping = register({
11730
11724
  });
11731
11725
 
11732
11726
  // actions/actionToggleStats.tsx
11733
- import { CODES as CODES10, KEYS as KEYS27 } from "@excalidraw/common";
11727
+ import { CODES as CODES8, KEYS as KEYS25 } from "@excalidraw/common";
11734
11728
  import { CaptureUpdateAction as CaptureUpdateAction26 } from "@excalidraw/element";
11735
11729
  var actionToggleStats = register({
11736
11730
  name: "stats",
@@ -11749,7 +11743,7 @@ var actionToggleStats = register({
11749
11743
  };
11750
11744
  },
11751
11745
  checked: (appState) => appState.stats.open,
11752
- keyTest: (event) => !event[KEYS27.CTRL_OR_CMD] && event.altKey && event.code === CODES10.SLASH
11746
+ keyTest: (event) => !event[KEYS25.CTRL_OR_CMD] && event.altKey && event.code === CODES8.SLASH
11753
11747
  });
11754
11748
 
11755
11749
  // actions/actionBoundText.tsx
@@ -12020,7 +12014,7 @@ var actionWrapTextInContainer = register({
12020
12014
 
12021
12015
  // actions/actionLink.tsx
12022
12016
  import { isEmbeddableElement as isEmbeddableElement2 } from "@excalidraw/element";
12023
- import { KEYS as KEYS29 } from "@excalidraw/common";
12017
+ import { KEYS as KEYS27 } from "@excalidraw/common";
12024
12018
  import { CaptureUpdateAction as CaptureUpdateAction28 } from "@excalidraw/element";
12025
12019
 
12026
12020
  // components/hyperlink/Hyperlink.tsx
@@ -12033,7 +12027,7 @@ import {
12033
12027
  useRef as useRef12,
12034
12028
  useState as useState10
12035
12029
  } from "react";
12036
- import { EVENT as EVENT5, HYPERLINK_TOOLTIP_DELAY, KEYS as KEYS28 } from "@excalidraw/common";
12030
+ import { EVENT as EVENT5, HYPERLINK_TOOLTIP_DELAY, KEYS as KEYS26 } from "@excalidraw/common";
12037
12031
  import { getElementAbsoluteCoords } from "@excalidraw/element";
12038
12032
  import { hitElementBoundingBox } from "@excalidraw/element";
12039
12033
  import { isElementLink } from "@excalidraw/element";
@@ -12207,10 +12201,10 @@ var Hyperlink = ({
12207
12201
  autoFocus: true,
12208
12202
  onKeyDown: (event) => {
12209
12203
  event.stopPropagation();
12210
- if (event[KEYS28.CTRL_OR_CMD] && event.key === KEYS28.K) {
12204
+ if (event[KEYS26.CTRL_OR_CMD] && event.key === KEYS26.K) {
12211
12205
  event.preventDefault();
12212
12206
  }
12213
- if (event.key === KEYS28.ENTER || event.key === KEYS28.ESCAPE) {
12207
+ if (event.key === KEYS26.ENTER || event.key === KEYS26.ESCAPE) {
12214
12208
  handleSubmit();
12215
12209
  setAppState({ showHyperlinkPopup: "info" });
12216
12210
  }
@@ -12402,7 +12396,7 @@ var actionLink = register({
12402
12396
  };
12403
12397
  },
12404
12398
  trackEvent: { category: "hyperlink", action: "click" },
12405
- keyTest: (event) => event[KEYS29.CTRL_OR_CMD] && event.key === KEYS29.K,
12399
+ keyTest: (event) => event[KEYS27.CTRL_OR_CMD] && event.key === KEYS27.K,
12406
12400
  predicate: (elements, appState) => {
12407
12401
  const selectedElements = getSelectedElements(elements, appState);
12408
12402
  return selectedElements.length === 1;
@@ -12424,7 +12418,7 @@ var actionLink = register({
12424
12418
  });
12425
12419
 
12426
12420
  // actions/actionElementLock.ts
12427
- import { KEYS as KEYS30, arrayToMap as arrayToMap13, randomId as randomId3 } from "@excalidraw/common";
12421
+ import { KEYS as KEYS28, arrayToMap as arrayToMap13, randomId as randomId3 } from "@excalidraw/common";
12428
12422
  import {
12429
12423
  elementsAreInSameGroup,
12430
12424
  newElementWith as newElementWith7,
@@ -12515,7 +12509,7 @@ var actionToggleElementLock = register({
12515
12509
  };
12516
12510
  },
12517
12511
  keyTest: (event, appState, elements, app) => {
12518
- return event.key.toLocaleLowerCase() === KEYS30.L && event[KEYS30.CTRL_OR_CMD] && event.shiftKey && app.scene.getSelectedElements({
12512
+ return event.key.toLocaleLowerCase() === KEYS28.L && event[KEYS28.CTRL_OR_CMD] && event.shiftKey && app.scene.getSelectedElements({
12519
12513
  selectedElementIds: appState.selectedElementIds,
12520
12514
  includeBoundTextElement: false
12521
12515
  }).length > 0;
@@ -12590,7 +12584,7 @@ import { useEffect as useEffect28, useRef as useRef24, useMemo as useMemo9, useS
12590
12584
  import {
12591
12585
  DEFAULT_SIDEBAR as DEFAULT_SIDEBAR2,
12592
12586
  EVENT as EVENT9,
12593
- KEYS as KEYS37,
12587
+ KEYS as KEYS35,
12594
12588
  capitalizeString as capitalizeString3,
12595
12589
  isWritableElement as isWritableElement3
12596
12590
  } from "@excalidraw/common";
@@ -13598,7 +13592,7 @@ var deburr = (str) => {
13598
13592
  // components/Dialog.tsx
13599
13593
  import clsx33 from "clsx";
13600
13594
  import { useEffect as useEffect26, useState as useState22 } from "react";
13601
- import { KEYS as KEYS34, queryFocusableElements } from "@excalidraw/common";
13595
+ import { KEYS as KEYS32, queryFocusableElements } from "@excalidraw/common";
13602
13596
 
13603
13597
  // hooks/useCallbackRefState.ts
13604
13598
  import { useCallback as useCallback7, useState as useState12 } from "react";
@@ -13621,7 +13615,7 @@ import {
13621
13615
  LIBRARY_DISABLED_TYPES as LIBRARY_DISABLED_TYPES2,
13622
13616
  randomId as randomId4,
13623
13617
  isShallowEqual,
13624
- KEYS as KEYS32,
13618
+ KEYS as KEYS30,
13625
13619
  isWritableElement as isWritableElement2,
13626
13620
  addEventListener,
13627
13621
  EVENT as EVENT8,
@@ -15199,7 +15193,7 @@ import { CLASSES as CLASSES3 } from "@excalidraw/common";
15199
15193
  // components/dropdownMenu/DropdownMenuContent.tsx
15200
15194
  import clsx24 from "clsx";
15201
15195
  import { useCallback as useCallback9, useEffect as useEffect22, useRef as useRef16 } from "react";
15202
- import { CLASSES as CLASSES2, EVENT as EVENT7, KEYS as KEYS31 } from "@excalidraw/common";
15196
+ import { CLASSES as CLASSES2, EVENT as EVENT7, KEYS as KEYS29 } from "@excalidraw/common";
15203
15197
  import { DropdownMenu as DropdownMenuPrimitive2 } from "radix-ui";
15204
15198
 
15205
15199
  // components/Stack.tsx
@@ -15277,7 +15271,7 @@ var MenuContent = ({
15277
15271
  return;
15278
15272
  }
15279
15273
  const onKeyDown = (event) => {
15280
- if (event.key === KEYS31.ESCAPE) {
15274
+ if (event.key === KEYS29.ESCAPE) {
15281
15275
  event.stopImmediatePropagation();
15282
15276
  callbacksRef.onClickOutside?.();
15283
15277
  }
@@ -16566,7 +16560,7 @@ var LibraryMenu = memo3(() => {
16566
16560
  document,
16567
16561
  EVENT8.KEYDOWN,
16568
16562
  (event) => {
16569
- if (event.key === KEYS32.ESCAPE && event.target instanceof HTMLElement) {
16563
+ if (event.key === KEYS30.ESCAPE && event.target instanceof HTMLElement) {
16570
16564
  const target = event.target;
16571
16565
  if (target.closest(`.${CLASSES4.SIDEBAR}`)) {
16572
16566
  if (selectedItems.length > 0) {
@@ -16625,7 +16619,7 @@ var LibraryMenu = memo3(() => {
16625
16619
  import clsx32 from "clsx";
16626
16620
  import { useRef as useRef21 } from "react";
16627
16621
  import { createPortal as createPortal2 } from "react-dom";
16628
- import { KEYS as KEYS33 } from "@excalidraw/common";
16622
+ import { KEYS as KEYS31 } from "@excalidraw/common";
16629
16623
  import { jsx as jsx75, jsxs as jsxs40 } from "react/jsx-runtime";
16630
16624
  var Modal = (props) => {
16631
16625
  const { closeOnClickOutside = true } = props;
@@ -16639,7 +16633,7 @@ var Modal = (props) => {
16639
16633
  return null;
16640
16634
  }
16641
16635
  const handleKeydown = (event) => {
16642
- if (event.key === KEYS33.ESCAPE) {
16636
+ if (event.key === KEYS31.ESCAPE) {
16643
16637
  event.nativeEvent.stopImmediatePropagation();
16644
16638
  event.stopPropagation();
16645
16639
  props.onCloseRequest();
@@ -16712,7 +16706,7 @@ var Dialog = (props) => {
16712
16706
  }
16713
16707
  });
16714
16708
  const handleKeyDown = (event) => {
16715
- if (event.key === KEYS34.TAB) {
16709
+ if (event.key === KEYS32.TAB) {
16716
16710
  const focusableElements2 = queryFocusableElements(islandNode);
16717
16711
  const { activeElement } = document;
16718
16712
  const currentIndex = focusableElements2.findIndex(
@@ -16776,7 +16770,7 @@ import { useMemo as useMemo8, useRef as useRef22, useState as useState24 } from
16776
16770
  import { Popover as Popover7 } from "radix-ui";
16777
16771
  import {
16778
16772
  CLASSES as CLASSES5,
16779
- KEYS as KEYS36,
16773
+ KEYS as KEYS34,
16780
16774
  capitalizeString as capitalizeString2,
16781
16775
  isTransparent as isTransparent2
16782
16776
  } from "@excalidraw/common";
@@ -16795,7 +16789,7 @@ import {
16795
16789
  import { getToolbarTools, SHAPES } from "@excalidraw/element/shapes";
16796
16790
 
16797
16791
  // actions/actionToggleViewMode.tsx
16798
- import { CODES as CODES11, KEYS as KEYS35 } from "@excalidraw/common";
16792
+ import { CODES as CODES9, KEYS as KEYS33 } from "@excalidraw/common";
16799
16793
  import clsx34 from "clsx";
16800
16794
  import { CaptureUpdateAction as CaptureUpdateAction32 } from "@excalidraw/element";
16801
16795
  import { jsx as jsx77 } from "react/jsx-runtime";
@@ -16821,7 +16815,7 @@ var actionToggleViewMode = register({
16821
16815
  predicate: (elements, appState, appProps) => {
16822
16816
  return typeof appProps.viewModeEnabled === "undefined";
16823
16817
  },
16824
- keyTest: (event) => !event[KEYS35.CTRL_OR_CMD] && event.altKey && event.code === CODES11.R,
16818
+ keyTest: (event) => !event[KEYS33.CTRL_OR_CMD] && event.altKey && event.code === CODES9.R,
16825
16819
  PanelComponent: ({ data, updateData, appState }) => /* @__PURE__ */ jsx77(
16826
16820
  ToolButton,
16827
16821
  {
@@ -17830,7 +17824,7 @@ var ShapesSwitcher = ({
17830
17824
  icon: app.state.activeTool.locked ? LockedIcon : UnlockedIcon,
17831
17825
  "data-testid": `toolbar-lock`,
17832
17826
  selected: app.state.activeTool.locked,
17833
- shortcut: KEYS36.Q,
17827
+ shortcut: KEYS34.Q,
17834
17828
  children: capitalizeString2(t("toolBar.lock-short"))
17835
17829
  }
17836
17830
  )
@@ -17942,7 +17936,7 @@ var CommandShortcutHint = ({
17942
17936
  ] });
17943
17937
  };
17944
17938
  var isCommandPaletteToggleShortcut = (event) => {
17945
- return !event.altKey && event[KEYS37.CTRL_OR_CMD] && (event.shiftKey && event.key.toLowerCase() === KEYS37.P || event.key === KEYS37.SLASH);
17939
+ return !event.altKey && event[KEYS35.CTRL_OR_CMD] && (event.shiftKey && event.key.toLowerCase() === KEYS35.P || event.key === KEYS35.SLASH);
17946
17940
  };
17947
17941
  var CommandPalette = Object.assign(
17948
17942
  (props) => {
@@ -18068,8 +18062,6 @@ function CommandPaletteInner({
18068
18062
  actionManager.actions.copy,
18069
18063
  actionManager.actions.deleteSelectedElements,
18070
18064
  actionManager.actions.wrapSelectionInFrame,
18071
- actionManager.actions.copyStyles,
18072
- actionManager.actions.pasteStyles,
18073
18065
  actionManager.actions.bringToFront,
18074
18066
  actionManager.actions.bringForward,
18075
18067
  actionManager.actions.sendBackward,
@@ -18125,7 +18117,6 @@ function CommandPaletteInner({
18125
18117
  actionManager.actions.resetZoom,
18126
18118
  actionManager.actions.zoomToFit,
18127
18119
  actionManager.actions.smartZoom,
18128
- actionManager.actions.zenMode,
18129
18120
  actionManager.actions.viewMode,
18130
18121
  actionManager.actions.gridMode,
18131
18122
  actionManager.actions.objectsSnapMode,
@@ -18138,8 +18129,7 @@ function CommandPaletteInner({
18138
18129
  const exportCommands = [
18139
18130
  actionManager.actions.saveToActiveFile,
18140
18131
  actionManager.actions.saveFileToDisk,
18141
- actionManager.actions.copyAsPng,
18142
- actionManager.actions.copyAsSvg
18132
+ actionManager.actions.copyAsPng
18143
18133
  ].map((action) => actionToCommand(action, DEFAULT_CATEGORIES.export));
18144
18134
  commandsFromActions = [
18145
18135
  ...elementsCommands,
@@ -18279,7 +18269,7 @@ function CommandPaletteInner({
18279
18269
  label: t("toolBar.lock"),
18280
18270
  category: DEFAULT_CATEGORIES.tools,
18281
18271
  icon: uiAppState2.activeTool.locked ? LockedIcon : UnlockedIcon,
18282
- shortcut: KEYS37.Q.toLocaleUpperCase(),
18272
+ shortcut: KEYS35.Q.toLocaleUpperCase(),
18283
18273
  viewMode: false,
18284
18274
  perform: () => {
18285
18275
  app.toggleLock();
@@ -18355,13 +18345,13 @@ function CommandPaletteInner({
18355
18345
  }
18356
18346
  );
18357
18347
  const handleKeyDown = useStableCallback((event) => {
18358
- const ignoreAlphanumerics = isWritableElement3(event.target) || isCommandPaletteToggleShortcut(event) || event.key === KEYS37.ESCAPE;
18359
- if (ignoreAlphanumerics && event.key !== KEYS37.ARROW_UP && event.key !== KEYS37.ARROW_DOWN && event.key !== KEYS37.ENTER) {
18348
+ const ignoreAlphanumerics = isWritableElement3(event.target) || isCommandPaletteToggleShortcut(event) || event.key === KEYS35.ESCAPE;
18349
+ if (ignoreAlphanumerics && event.key !== KEYS35.ARROW_UP && event.key !== KEYS35.ARROW_DOWN && event.key !== KEYS35.ENTER) {
18360
18350
  return;
18361
18351
  }
18362
18352
  const matchingCommands = Object.values(commandsByCategory).flat();
18363
18353
  const shouldConsiderLastUsed = lastUsed && !commandSearch && isCommandAvailable(lastUsed);
18364
- if (event.key === KEYS37.ARROW_UP) {
18354
+ if (event.key === KEYS35.ARROW_UP) {
18365
18355
  event.preventDefault();
18366
18356
  const index = matchingCommands.findIndex(
18367
18357
  (item) => item.label === currentCommand?.label
@@ -18391,7 +18381,7 @@ function CommandPaletteInner({
18391
18381
  }
18392
18382
  return;
18393
18383
  }
18394
- if (event.key === KEYS37.ARROW_DOWN) {
18384
+ if (event.key === KEYS35.ARROW_DOWN) {
18395
18385
  event.preventDefault();
18396
18386
  const index = matchingCommands.findIndex(
18397
18387
  (item) => item.label === currentCommand?.label
@@ -18416,7 +18406,7 @@ function CommandPaletteInner({
18416
18406
  }
18417
18407
  return;
18418
18408
  }
18419
- if (event.key === KEYS37.ENTER) {
18409
+ if (event.key === KEYS35.ENTER) {
18420
18410
  if (currentCommand) {
18421
18411
  setTimeout(() => {
18422
18412
  executeCommand(currentCommand, event);
@@ -18743,7 +18733,7 @@ import {
18743
18733
  } from "@excalidraw/math";
18744
18734
  import {
18745
18735
  DRAGGING_THRESHOLD,
18746
- KEYS as KEYS38,
18736
+ KEYS as KEYS36,
18747
18737
  shouldRotateWithDiscreteAngle as shouldRotateWithDiscreteAngle2,
18748
18738
  getGridPoint,
18749
18739
  invariant as invariant11,
@@ -20285,7 +20275,7 @@ var actionTogglePolygon = register({
20285
20275
 
20286
20276
  // actions/actionToggleSearchMenu.ts
20287
20277
  import {
20288
- KEYS as KEYS39,
20278
+ KEYS as KEYS37,
20289
20279
  CANVAS_SEARCH_TAB,
20290
20280
  CLASSES as CLASSES6,
20291
20281
  DEFAULT_SIDEBAR as DEFAULT_SIDEBAR3
@@ -20327,7 +20317,7 @@ var actionToggleSearchMenu = register({
20327
20317
  predicate: (element, appState, props) => {
20328
20318
  return props.gridModeEnabled === void 0;
20329
20319
  },
20330
- keyTest: (event) => event[KEYS39.CTRL_OR_CMD] && event.key === KEYS39.F
20320
+ keyTest: (event) => event[KEYS37.CTRL_OR_CMD] && event.key === KEYS37.F
20331
20321
  });
20332
20322
 
20333
20323
  // actions/actionCropEditor.tsx
@@ -20550,7 +20540,7 @@ var actionWrapSelectionInFrame = register({
20550
20540
  // actions/actionHistory.tsx
20551
20541
  import {
20552
20542
  isWindows,
20553
- KEYS as KEYS40,
20543
+ KEYS as KEYS38,
20554
20544
  matchKey as matchKey2,
20555
20545
  arrayToMap as arrayToMap25,
20556
20546
  MOBILE_ACTION_BUTTON_BG as MOBILE_ACTION_BUTTON_BG4
@@ -20781,7 +20771,7 @@ var createUndoAction = (history) => ({
20781
20771
  appState,
20782
20772
  () => history.undo(arrayToMap25(elements), appState)
20783
20773
  ),
20784
- keyTest: (event) => event[KEYS40.CTRL_OR_CMD] && matchKey2(event, KEYS40.Z) && !event.shiftKey,
20774
+ keyTest: (event) => event[KEYS38.CTRL_OR_CMD] && matchKey2(event, KEYS38.Z) && !event.shiftKey,
20785
20775
  PanelComponent: ({ appState, updateData, data, app }) => {
20786
20776
  const { isUndoStackEmpty } = useEmitter(
20787
20777
  history.onHistoryChangedEmitter,
@@ -20819,7 +20809,7 @@ var createRedoAction = (history) => ({
20819
20809
  appState,
20820
20810
  () => history.redo(arrayToMap25(elements), appState)
20821
20811
  ),
20822
- keyTest: (event) => event[KEYS40.CTRL_OR_CMD] && event.shiftKey && matchKey2(event, KEYS40.Z) || isWindows && event.ctrlKey && !event.shiftKey && matchKey2(event, KEYS40.Y),
20812
+ keyTest: (event) => event[KEYS38.CTRL_OR_CMD] && event.shiftKey && matchKey2(event, KEYS38.Z) || isWindows && event.ctrlKey && !event.shiftKey && matchKey2(event, KEYS38.Y),
20823
20813
  PanelComponent: ({ appState, updateData, data, app }) => {
20824
20814
  const { isRedoStackEmpty } = useEmitter(
20825
20815
  history.onHistoryChangedEmitter,
@@ -21091,7 +21081,7 @@ import {
21091
21081
  rangeIntersection,
21092
21082
  rangesOverlap
21093
21083
  } from "@excalidraw/math";
21094
- import { TOOL_TYPE, KEYS as KEYS41 } from "@excalidraw/common";
21084
+ import { TOOL_TYPE, KEYS as KEYS39 } from "@excalidraw/common";
21095
21085
  import {
21096
21086
  getCommonBounds as getCommonBounds4,
21097
21087
  getDraggedElementsBounds,
@@ -21137,7 +21127,7 @@ var isSnappingEnabled = ({
21137
21127
  }) => {
21138
21128
  if (event) {
21139
21129
  const isLassoDragging = app.state.activeTool.type === "lasso" && app.state.selectedElementsAreBeingDragged;
21140
- return (app.state.activeTool.type !== "lasso" || isLassoDragging) && (app.state.objectsSnapModeEnabled && !event[KEYS41.CTRL_OR_CMD] || !app.state.objectsSnapModeEnabled && event[KEYS41.CTRL_OR_CMD] && !isGridModeEnabled(app));
21130
+ return (app.state.activeTool.type !== "lasso" || isLassoDragging) && (app.state.objectsSnapModeEnabled && !event[KEYS39.CTRL_OR_CMD] || !app.state.objectsSnapModeEnabled && event[KEYS39.CTRL_OR_CMD] && !isGridModeEnabled(app));
21141
21131
  }
21142
21132
  if (selectedElements.length === 1 && selectedElements[0].type === "arrow") {
21143
21133
  return false;
@@ -22522,8 +22512,8 @@ var isPointHittingTextAutoResizeHandle = (point, textElement, zoomValue, formFac
22522
22512
 
22523
22513
  // wysiwyg/textWysiwyg.tsx
22524
22514
  import {
22525
- CODES as CODES12,
22526
- KEYS as KEYS42,
22515
+ CODES as CODES10,
22516
+ KEYS as KEYS40,
22527
22517
  CLASSES as CLASSES7,
22528
22518
  POINTER_BUTTON,
22529
22519
  THEME as THEME11,
@@ -22987,7 +22977,7 @@ var textWysiwyg = ({
22987
22977
  app.actionManager.executeAction(actionDecreaseFontSize);
22988
22978
  } else if (actionIncreaseFontSize.keyTest(event)) {
22989
22979
  app.actionManager.executeAction(actionIncreaseFontSize);
22990
- } else if (event.key === KEYS42.ESCAPE) {
22980
+ } else if (event.key === KEYS40.ESCAPE) {
22991
22981
  event.preventDefault();
22992
22982
  submittedViaKeyboard = true;
22993
22983
  handleSubmit();
@@ -22995,18 +22985,18 @@ var textWysiwyg = ({
22995
22985
  event.preventDefault();
22996
22986
  handleSubmit();
22997
22987
  app.actionManager.executeAction(actionSaveToActiveFile);
22998
- } else if (event.key === KEYS42.ENTER && event[KEYS42.CTRL_OR_CMD]) {
22988
+ } else if (event.key === KEYS40.ENTER && event[KEYS40.CTRL_OR_CMD]) {
22999
22989
  event.preventDefault();
23000
22990
  if (event.isComposing || event.keyCode === 229) {
23001
22991
  return;
23002
22992
  }
23003
22993
  submittedViaKeyboard = true;
23004
22994
  handleSubmit();
23005
- } else if (event.key === KEYS42.TAB || event[KEYS42.CTRL_OR_CMD] && (event.code === CODES12.BRACKET_LEFT || event.code === CODES12.BRACKET_RIGHT)) {
22995
+ } else if (event.key === KEYS40.TAB || event[KEYS40.CTRL_OR_CMD] && (event.code === CODES10.BRACKET_LEFT || event.code === CODES10.BRACKET_RIGHT)) {
23006
22996
  event.preventDefault();
23007
22997
  if (event.isComposing) {
23008
22998
  return;
23009
- } else if (event.shiftKey || event.code === CODES12.BRACKET_LEFT) {
22999
+ } else if (event.shiftKey || event.code === CODES10.BRACKET_LEFT) {
23010
23000
  outdent();
23011
23001
  } else {
23012
23002
  indent();
@@ -23561,7 +23551,7 @@ var LassoTrail = class extends AnimatedTrail {
23561
23551
  };
23562
23552
 
23563
23553
  // actions/actionSmartZoom.tsx
23564
- import { KEYS as KEYS43 } from "@excalidraw/common";
23554
+ import { KEYS as KEYS41 } from "@excalidraw/common";
23565
23555
  import { CaptureUpdateAction as CaptureUpdateAction40 } from "@excalidraw/element/store";
23566
23556
  import { jsx as jsx86 } from "react/jsx-runtime";
23567
23557
  var actionSmartZoom = register({
@@ -23585,7 +23575,7 @@ var actionSmartZoom = register({
23585
23575
  captureUpdate: CaptureUpdateAction40.NEVER
23586
23576
  };
23587
23577
  },
23588
- keyTest: (event) => !event[KEYS43.CTRL_OR_CMD] && !event.shiftKey && !event.altKey && event.key.toLocaleLowerCase() === KEYS43.F,
23578
+ keyTest: (event) => !event[KEYS41.CTRL_OR_CMD] && !event.shiftKey && !event.altKey && event.key.toLocaleLowerCase() === KEYS41.F,
23589
23579
  PanelComponent: ({ data, updateData }) => /* @__PURE__ */ jsx86(
23590
23580
  ToolButton,
23591
23581
  {
@@ -23595,7 +23585,7 @@ var actionSmartZoom = register({
23595
23585
  onClick: () => updateData(null),
23596
23586
  size: data?.size || "medium",
23597
23587
  "data-testid": "button-smart-zoom",
23598
- keyBindingLabel: KEYS43.F.toLocaleUpperCase()
23588
+ keyBindingLabel: KEYS41.F.toLocaleUpperCase()
23599
23589
  }
23600
23590
  )
23601
23591
  });
@@ -24904,7 +24894,7 @@ import React29 from "react";
24904
24894
  // components/Popover.tsx
24905
24895
  import { useLayoutEffect as useLayoutEffect4, useRef as useRef25, useEffect as useEffect30 } from "react";
24906
24896
  import { unstable_batchedUpdates as unstable_batchedUpdates2 } from "react-dom";
24907
- import { KEYS as KEYS44, queryFocusableElements as queryFocusableElements2 } from "@excalidraw/common";
24897
+ import { KEYS as KEYS42, queryFocusableElements as queryFocusableElements2 } from "@excalidraw/common";
24908
24898
  import clsx38 from "clsx";
24909
24899
  import { jsx as jsx88 } from "react/jsx-runtime";
24910
24900
  var Popover8 = ({
@@ -24929,7 +24919,7 @@ var Popover8 = ({
24929
24919
  container.focus();
24930
24920
  }
24931
24921
  const handleKeyDown = (event) => {
24932
- if (event.key === KEYS44.TAB) {
24922
+ if (event.key === KEYS42.TAB) {
24933
24923
  const focusableElements = queryFocusableElements2(container);
24934
24924
  const { activeElement } = document;
24935
24925
  const currentIndex = focusableElements.findIndex(
@@ -25216,12 +25206,12 @@ var LoadingMessage = ({
25216
25206
  // components/MobileToolBar.tsx
25217
25207
  import { useState as useState28 } from "react";
25218
25208
  import clsx42 from "clsx";
25219
- import { KEYS as KEYS46, capitalizeString as capitalizeString4 } from "@excalidraw/common";
25209
+ import { KEYS as KEYS44, capitalizeString as capitalizeString4 } from "@excalidraw/common";
25220
25210
  import { SHAPES as SHAPES3 } from "@excalidraw/element/shapes";
25221
25211
 
25222
25212
  // components/HandButton.tsx
25223
25213
  import clsx41 from "clsx";
25224
- import { KEYS as KEYS45 } from "@excalidraw/common";
25214
+ import { KEYS as KEYS43 } from "@excalidraw/common";
25225
25215
  import { jsx as jsx92 } from "react/jsx-runtime";
25226
25216
  var HandButton = (props) => {
25227
25217
  return /* @__PURE__ */ jsx92(
@@ -25233,9 +25223,9 @@ var HandButton = (props) => {
25233
25223
  name: "editor-current-shape",
25234
25224
  checked: props.checked,
25235
25225
  title: `${props.title} \u2014 H`,
25236
- keyBindingLabel: !props.isMobile ? KEYS45.H.toLocaleUpperCase() : void 0,
25226
+ keyBindingLabel: !props.isMobile ? KEYS43.H.toLocaleUpperCase() : void 0,
25237
25227
  "aria-label": `${props.title} \u2014 H`,
25238
- "aria-keyshortcuts": KEYS45.H,
25228
+ "aria-keyshortcuts": KEYS43.H,
25239
25229
  "data-testid": `toolbar-hand`,
25240
25230
  onChange: () => props.onChange?.()
25241
25231
  }
@@ -25471,7 +25461,7 @@ var MobileToolBar = ({
25471
25461
  icon: app.state.activeTool.locked ? LockedIcon : UnlockedIcon,
25472
25462
  "data-testid": `toolbar-lock`,
25473
25463
  selected: app.state.activeTool.locked,
25474
- shortcut: KEYS46.Q,
25464
+ shortcut: KEYS44.Q,
25475
25465
  children: capitalizeString4(t("toolBar.lock-short"))
25476
25466
  }
25477
25467
  ),
@@ -25480,7 +25470,7 @@ var MobileToolBar = ({
25480
25470
  {
25481
25471
  onSelect: () => app.setActiveTool({ type: "text" }),
25482
25472
  icon: TextIcon,
25483
- shortcut: KEYS46.T.toLocaleUpperCase(),
25473
+ shortcut: KEYS44.T.toLocaleUpperCase(),
25484
25474
  "data-testid": "toolbar-text",
25485
25475
  selected: activeTool.type === "text",
25486
25476
  children: t("toolBar.text")
@@ -26159,7 +26149,7 @@ import {
26159
26149
  CLASSES as CLASSES8,
26160
26150
  EVENT as EVENT10,
26161
26151
  isDevEnv as isDevEnv8,
26162
- KEYS as KEYS47,
26152
+ KEYS as KEYS45,
26163
26153
  updateObject
26164
26154
  } from "@excalidraw/common";
26165
26155
 
@@ -26399,7 +26389,7 @@ var SidebarInner = forwardRef4(
26399
26389
  );
26400
26390
  useEffect32(() => {
26401
26391
  const handleKeyDown = (event) => {
26402
- if (event.key === KEYS47.ESCAPE && (!docked || !editorInterface.canFitSidebar)) {
26392
+ if (event.key === KEYS45.ESCAPE && (!docked || !editorInterface.canFitSidebar)) {
26403
26393
  closeLibrary();
26404
26394
  }
26405
26395
  };
@@ -27056,7 +27046,6 @@ var Preferences = ({
27056
27046
  /* @__PURE__ */ jsx111(PreferencesToggleToolLockItem, {}),
27057
27047
  /* @__PURE__ */ jsx111(PreferencesToggleSnapModeItem, {}),
27058
27048
  /* @__PURE__ */ jsx111(PreferencesToggleGridModeItem, {}),
27059
- /* @__PURE__ */ jsx111(PreferencesToggleZenModeItem, {}),
27060
27049
  /* @__PURE__ */ jsx111(PreferencesToggleViewModeItem, {}),
27061
27050
  /* @__PURE__ */ jsx111(PreferencesToggleElementPropertiesItem, {}),
27062
27051
  /* @__PURE__ */ jsx111(PreferencesToggleArrowBindingItem, {}),
@@ -27358,7 +27347,7 @@ import {
27358
27347
  import { isElementCompletelyInViewport } from "@excalidraw/element";
27359
27348
  import { measureText as measureText7 } from "@excalidraw/element";
27360
27349
  import {
27361
- KEYS as KEYS48,
27350
+ KEYS as KEYS46,
27362
27351
  randomInteger as randomInteger3,
27363
27352
  addEventListener as addEventListener2,
27364
27353
  getFontString as getFontString10
@@ -27531,7 +27520,7 @@ var SearchMenu2 = () => {
27531
27520
  });
27532
27521
  useEffect33(() => {
27533
27522
  const eventHandler = (event) => {
27534
- if (event.key === KEYS48.ESCAPE && !app.state.openDialog && !app.state.openPopup) {
27523
+ if (event.key === KEYS46.ESCAPE && !app.state.openDialog && !app.state.openPopup) {
27535
27524
  event.preventDefault();
27536
27525
  event.stopPropagation();
27537
27526
  setAppState({
@@ -27539,7 +27528,7 @@ var SearchMenu2 = () => {
27539
27528
  });
27540
27529
  return;
27541
27530
  }
27542
- if (event[KEYS48.CTRL_OR_CMD] && event.key === KEYS48.F) {
27531
+ if (event[KEYS46.CTRL_OR_CMD] && event.key === KEYS46.F) {
27543
27532
  event.preventDefault();
27544
27533
  event.stopPropagation();
27545
27534
  if (app.state.openDialog) {
@@ -27557,14 +27546,14 @@ var SearchMenu2 = () => {
27557
27546
  }
27558
27547
  if (event.target instanceof HTMLElement && event.target.closest(".layer-ui__search")) {
27559
27548
  if (stableState.searchMatches.items.length) {
27560
- if (event.key === KEYS48.ENTER) {
27549
+ if (event.key === KEYS46.ENTER) {
27561
27550
  event.stopPropagation();
27562
27551
  stableState.goToNextItem();
27563
27552
  }
27564
- if (event.key === KEYS48.ARROW_UP) {
27553
+ if (event.key === KEYS46.ARROW_UP) {
27565
27554
  event.stopPropagation();
27566
27555
  stableState.goToPreviousItem();
27567
- } else if (event.key === KEYS48.ARROW_DOWN) {
27556
+ } else if (event.key === KEYS46.ARROW_DOWN) {
27568
27557
  event.stopPropagation();
27569
27558
  stableState.goToNextItem();
27570
27559
  }
@@ -28053,7 +28042,7 @@ import { updateBindings as updateBindings3 } from "@excalidraw/element";
28053
28042
  // components/Stats/DragInput.tsx
28054
28043
  import clsx54 from "clsx";
28055
28044
  import { useEffect as useEffect34, useRef as useRef30, useState as useState33 } from "react";
28056
- import { EVENT as EVENT12, KEYS as KEYS49, cloneJSON as cloneJSON3 } from "@excalidraw/common";
28045
+ import { EVENT as EVENT12, KEYS as KEYS47, cloneJSON as cloneJSON3 } from "@excalidraw/common";
28057
28046
  import { deepCopyElement as deepCopyElement4 } from "@excalidraw/element";
28058
28047
  import { CaptureUpdateAction as CaptureUpdateAction41 } from "@excalidraw/element";
28059
28048
 
@@ -28412,7 +28401,7 @@ var StatsDragInput = ({
28412
28401
  onKeyDown: (event) => {
28413
28402
  if (editable) {
28414
28403
  const eventTarget = event.target;
28415
- if (eventTarget instanceof HTMLInputElement && event.key === KEYS49.ENTER) {
28404
+ if (eventTarget instanceof HTMLInputElement && event.key === KEYS47.ENTER) {
28416
28405
  handleInputValue(eventTarget.value, elements, appState);
28417
28406
  app.focusContainer();
28418
28407
  }
@@ -30140,7 +30129,7 @@ var StatsInner = memo5(
30140
30129
 
30141
30130
  // components/ElementLinkDialog.tsx
30142
30131
  import { useCallback as useCallback16, useEffect as useEffect36, useState as useState35 } from "react";
30143
- import { normalizeLink as normalizeLink2, KEYS as KEYS50 } from "@excalidraw/common";
30132
+ import { normalizeLink as normalizeLink2, KEYS as KEYS48 } from "@excalidraw/common";
30144
30133
  import {
30145
30134
  defaultGetElementLinkFromSelection as defaultGetElementLinkFromSelection2,
30146
30135
  getLinkIdAndTypeFromSelection as getLinkIdAndTypeFromSelection2
@@ -30196,10 +30185,10 @@ var ElementLinkDialog = ({
30196
30185
  }, [sourceElementId, nextLink, elementsMap, linkEdited, scene, onClose]);
30197
30186
  useEffect36(() => {
30198
30187
  const handleKeyDown = (event) => {
30199
- if (appState.openDialog?.name === "elementLinkSelector" && event.key === KEYS50.ENTER) {
30188
+ if (appState.openDialog?.name === "elementLinkSelector" && event.key === KEYS48.ENTER) {
30200
30189
  handleConfirm();
30201
30190
  }
30202
- if (appState.openDialog?.name === "elementLinkSelector" && event.key === KEYS50.ESCAPE) {
30191
+ if (appState.openDialog?.name === "elementLinkSelector" && event.key === KEYS48.ESCAPE) {
30203
30192
  onClose?.();
30204
30193
  }
30205
30194
  };
@@ -30225,7 +30214,7 @@ var ElementLinkDialog = ({
30225
30214
  setNextLink(value);
30226
30215
  },
30227
30216
  onKeyDown: (event) => {
30228
- if (event.key === KEYS50.ENTER) {
30217
+ if (event.key === KEYS48.ENTER) {
30229
30218
  handleConfirm();
30230
30219
  }
30231
30220
  },
@@ -30325,11 +30314,11 @@ var FixedSideContainer = ({
30325
30314
  import React38, { useMemo as useMemo14 } from "react";
30326
30315
  import clsx57 from "clsx";
30327
30316
  import { isDarwin as isDarwin4, isFirefox as isFirefox4, isWindows as isWindows2 } from "@excalidraw/common";
30328
- import { KEYS as KEYS52 } from "@excalidraw/common";
30317
+ import { KEYS as KEYS50 } from "@excalidraw/common";
30329
30318
  import { SHAPES as SHAPES5 } from "@excalidraw/element/shapes";
30330
30319
 
30331
30320
  // components/HelpDialog/BasicHelpDialog.tsx
30332
- import { isFirefox as isFirefox3, KEYS as KEYS51 } from "@excalidraw/common";
30321
+ import { isFirefox as isFirefox3, KEYS as KEYS49 } from "@excalidraw/common";
30333
30322
  import { SHAPES as SHAPES4 } from "@excalidraw/element/shapes";
30334
30323
  import { Fragment as Fragment20, jsx as jsx132, jsxs as jsxs70 } from "react/jsx-runtime";
30335
30324
  var Section2 = (props) => /* @__PURE__ */ jsxs70(Fragment20, { children: [
@@ -30376,7 +30365,7 @@ function BasicHelpDialog() {
30376
30365
  className: "HelpDialog__island--tools",
30377
30366
  caption: t("helpDialog.tools"),
30378
30367
  children: [
30379
- /* @__PURE__ */ jsx132(Shortcut, { label: t("toolBar.hand"), shortcuts: [KEYS51.H] }),
30368
+ /* @__PURE__ */ jsx132(Shortcut, { label: t("toolBar.hand"), shortcuts: [KEYS49.H] }),
30380
30369
  SHAPES4.filter(({ myocSimplifiedMode }) => myocSimplifiedMode).map(
30381
30370
  ({ value, key }) => /* @__PURE__ */ jsx132(
30382
30371
  Shortcut,
@@ -30412,14 +30401,7 @@ function BasicHelpDialog() {
30412
30401
  className: "HelpDialog__island--view",
30413
30402
  caption: t("helpDialog.view"),
30414
30403
  children: [
30415
- /* @__PURE__ */ jsx132(Shortcut, { label: t("helpDialog.smartZoom"), shortcuts: [KEYS51.F] }),
30416
- /* @__PURE__ */ jsx132(
30417
- Shortcut,
30418
- {
30419
- label: t("buttons.zenMode"),
30420
- shortcuts: [getShortcutKey("Alt+Z")]
30421
- }
30422
- ),
30404
+ /* @__PURE__ */ jsx132(Shortcut, { label: t("helpDialog.smartZoom"), shortcuts: [KEYS49.F] }),
30423
30405
  /* @__PURE__ */ jsx132(
30424
30406
  Shortcut,
30425
30407
  {
@@ -30599,7 +30581,7 @@ var HelpDialog = ({ onClose }) => {
30599
30581
  className: "HelpDialog__island--tools",
30600
30582
  caption: t("helpDialog.tools"),
30601
30583
  children: [
30602
- /* @__PURE__ */ jsx133(Shortcut2, { label: t("toolBar.hand"), shortcuts: [KEYS52.H] }),
30584
+ /* @__PURE__ */ jsx133(Shortcut2, { label: t("toolBar.hand"), shortcuts: [KEYS50.H] }),
30603
30585
  SHAPES5.map(({ value, key }) => /* @__PURE__ */ jsx133(
30604
30586
  Shortcut2,
30605
30587
  {
@@ -30608,13 +30590,13 @@ var HelpDialog = ({ onClose }) => {
30608
30590
  },
30609
30591
  value
30610
30592
  )),
30611
- /* @__PURE__ */ jsx133(Shortcut2, { label: t("toolBar.frame"), shortcuts: [KEYS52.F] }),
30612
- /* @__PURE__ */ jsx133(Shortcut2, { label: t("toolBar.laser"), shortcuts: [KEYS52.K] }),
30593
+ /* @__PURE__ */ jsx133(Shortcut2, { label: t("toolBar.frame"), shortcuts: [KEYS50.F] }),
30594
+ /* @__PURE__ */ jsx133(Shortcut2, { label: t("toolBar.laser"), shortcuts: [KEYS50.K] }),
30613
30595
  /* @__PURE__ */ jsx133(
30614
30596
  Shortcut2,
30615
30597
  {
30616
30598
  label: t("labels.eyeDropper"),
30617
- shortcuts: [KEYS52.I, "Shift+S", "Shift+G"]
30599
+ shortcuts: [KEYS50.I, "Shift+S", "Shift+G"]
30618
30600
  }
30619
30601
  ),
30620
30602
  /* @__PURE__ */ jsx133(
@@ -30696,7 +30678,7 @@ var HelpDialog = ({ onClose }) => {
30696
30678
  isOr: true
30697
30679
  }
30698
30680
  ),
30699
- /* @__PURE__ */ jsx133(Shortcut2, { label: t("toolBar.lock"), shortcuts: [KEYS52.Q] }),
30681
+ /* @__PURE__ */ jsx133(Shortcut2, { label: t("toolBar.lock"), shortcuts: [KEYS50.Q] }),
30700
30682
  /* @__PURE__ */ jsx133(
30701
30683
  Shortcut2,
30702
30684
  {
@@ -30732,7 +30714,7 @@ var HelpDialog = ({ onClose }) => {
30732
30714
  Shortcut2,
30733
30715
  {
30734
30716
  label: t("helpDialog.smartZoom"),
30735
- shortcuts: [KEYS52.F]
30717
+ shortcuts: [KEYS50.F]
30736
30718
  }
30737
30719
  ),
30738
30720
  /* @__PURE__ */ jsx133(
@@ -30777,13 +30759,6 @@ var HelpDialog = ({ onClose }) => {
30777
30759
  shortcuts: ["Shift+PgUp/PgDn"]
30778
30760
  }
30779
30761
  ),
30780
- /* @__PURE__ */ jsx133(
30781
- Shortcut2,
30782
- {
30783
- label: t("buttons.zenMode"),
30784
- shortcuts: [getShortcutKey("Alt+Z")]
30785
- }
30786
- ),
30787
30762
  /* @__PURE__ */ jsx133(
30788
30763
  Shortcut2,
30789
30764
  {
@@ -30923,20 +30898,6 @@ var HelpDialog = ({ onClose }) => {
30923
30898
  shortcuts: [getShortcutKey("Shift+Alt+C")]
30924
30899
  }
30925
30900
  ),
30926
- /* @__PURE__ */ jsx133(
30927
- Shortcut2,
30928
- {
30929
- label: t("labels.copyStyles"),
30930
- shortcuts: [getShortcutKey("CtrlOrCmd+Alt+C")]
30931
- }
30932
- ),
30933
- /* @__PURE__ */ jsx133(
30934
- Shortcut2,
30935
- {
30936
- label: t("labels.pasteStyles"),
30937
- shortcuts: [getShortcutKey("CtrlOrCmd+Alt+V")]
30938
- }
30939
- ),
30940
30901
  /* @__PURE__ */ jsx133(
30941
30902
  Shortcut2,
30942
30903
  {
@@ -34322,6 +34283,8 @@ var StaticCanvas = (props) => {
34322
34283
  wrapper.replaceChildren(canvas);
34323
34284
  canvas.classList.add("excalidraw__canvas", "static");
34324
34285
  }
34286
+ const gridColorBold = getComputedStyle(wrapper).getPropertyValue("--color-grid-bold").trim();
34287
+ const gridColorRegular = getComputedStyle(wrapper).getPropertyValue("--color-grid-regular").trim();
34325
34288
  renderStaticScene(
34326
34289
  {
34327
34290
  canvas,
@@ -34331,7 +34294,11 @@ var StaticCanvas = (props) => {
34331
34294
  allElementsMap: props.allElementsMap,
34332
34295
  visibleElements: props.visibleElements,
34333
34296
  appState: props.appState,
34334
- renderConfig: props.renderConfig
34297
+ renderConfig: {
34298
+ ...props.renderConfig,
34299
+ gridColorBold,
34300
+ gridColorRegular
34301
+ }
34335
34302
  },
34336
34303
  isRenderThrottlingEnabled()
34337
34304
  );
@@ -35004,7 +34971,7 @@ var App = class _App extends React44.Component {
35004
34971
  onFocus: (e) => e.target.select(),
35005
34972
  onBlur: () => this.resetEditingFrame(f),
35006
34973
  onKeyDown: (event) => {
35007
- if (event.key === KEYS53.ESCAPE || event.key === KEYS53.ENTER) {
34974
+ if (event.key === KEYS51.ESCAPE || event.key === KEYS51.ENTER) {
35008
34975
  this.resetEditingFrame(f);
35009
34976
  }
35010
34977
  },
@@ -36123,7 +36090,7 @@ var App = class _App extends React44.Component {
36123
36090
  });
36124
36091
  }
36125
36092
  if (!isInputLike(event.target)) {
36126
- if ((event.key === KEYS53.ESCAPE || event.key === KEYS53.ENTER) && this.state.croppingElementId) {
36093
+ if ((event.key === KEYS51.ESCAPE || event.key === KEYS51.ENTER) && this.state.croppingElementId) {
36127
36094
  this.finishImageCropping();
36128
36095
  return;
36129
36096
  }
@@ -36131,13 +36098,13 @@ var App = class _App extends React44.Component {
36131
36098
  this.scene.getNonDeletedElementsMap(),
36132
36099
  this.state
36133
36100
  );
36134
- if (selectedElements.length === 1 && isImageElement9(selectedElements[0]) && event.key === KEYS53.ENTER) {
36101
+ if (selectedElements.length === 1 && isImageElement9(selectedElements[0]) && event.key === KEYS51.ENTER) {
36135
36102
  this.startImageCropping(selectedElements[0]);
36136
36103
  return;
36137
36104
  }
36138
- if (event.key === KEYS53.ESCAPE) {
36105
+ if (event.key === KEYS51.ESCAPE) {
36139
36106
  this.updateEditorAtom(convertElementTypePopupAtom, null);
36140
- } else if (event.key === KEYS53.TAB && (document.activeElement === this.excalidrawContainerRef?.current || document.activeElement?.classList.contains(
36107
+ } else if (event.key === KEYS51.TAB && (document.activeElement === this.excalidrawContainerRef?.current || document.activeElement?.classList.contains(
36141
36108
  CLASSES11.CONVERT_ELEMENT_TYPE_POPUP
36142
36109
  ))) {
36143
36110
  event.preventDefault();
@@ -36156,13 +36123,13 @@ var App = class _App extends React44.Component {
36156
36123
  });
36157
36124
  }
36158
36125
  }
36159
- if (event.key === KEYS53.ESCAPE && this.flowChartCreator.isCreatingChart) {
36126
+ if (event.key === KEYS51.ESCAPE && this.flowChartCreator.isCreatingChart) {
36160
36127
  this.flowChartCreator.clear();
36161
36128
  this.triggerRender(true);
36162
36129
  return;
36163
36130
  }
36164
36131
  const arrowKeyPressed = isArrowKey2(event.key);
36165
- if (event[KEYS53.CTRL_OR_CMD] && arrowKeyPressed && !event.shiftKey) {
36132
+ if (event[KEYS51.CTRL_OR_CMD] && arrowKeyPressed && !event.shiftKey) {
36166
36133
  event.preventDefault();
36167
36134
  const selectedElements2 = getSelectedElements(
36168
36135
  this.scene.getNonDeletedElementsMap(),
@@ -36246,7 +36213,7 @@ var App = class _App extends React44.Component {
36246
36213
  }
36247
36214
  }
36248
36215
  }
36249
- if (event[KEYS53.CTRL_OR_CMD] && event.key === KEYS53.P && !event.shiftKey && !event.altKey) {
36216
+ if (event[KEYS51.CTRL_OR_CMD] && event.key === KEYS51.P && !event.shiftKey && !event.altKey) {
36250
36217
  this.setToast({
36251
36218
  message: t("commandPalette.shortcutHint", {
36252
36219
  shortcut: getShortcutFromShortcutName("commandPalette")
@@ -36255,15 +36222,15 @@ var App = class _App extends React44.Component {
36255
36222
  event.preventDefault();
36256
36223
  return;
36257
36224
  }
36258
- if (event[KEYS53.CTRL_OR_CMD] && event.key.toLowerCase() === KEYS53.V) {
36225
+ if (event[KEYS51.CTRL_OR_CMD] && event.key.toLowerCase() === KEYS51.V) {
36259
36226
  IS_PLAIN_PASTE = event.shiftKey;
36260
36227
  clearTimeout(IS_PLAIN_PASTE_TIMER);
36261
36228
  IS_PLAIN_PASTE_TIMER = window.setTimeout(() => {
36262
36229
  IS_PLAIN_PASTE = false;
36263
36230
  }, 100);
36264
36231
  }
36265
- if (event[KEYS53.CTRL_OR_CMD] && isWritableElement5(event.target)) {
36266
- if (event.code === CODES13.MINUS || event.code === CODES13.EQUAL) {
36232
+ if (event[KEYS51.CTRL_OR_CMD] && isWritableElement5(event.target)) {
36233
+ if (event.code === CODES11.MINUS || event.code === CODES11.EQUAL) {
36267
36234
  event.preventDefault();
36268
36235
  return;
36269
36236
  }
@@ -36271,24 +36238,24 @@ var App = class _App extends React44.Component {
36271
36238
  if (
36272
36239
  // inside an input
36273
36240
  isWritableElement5(event.target) && // unless pressing escape (finalize action)
36274
- event.key !== KEYS53.ESCAPE || // or unless using arrows (to move between buttons)
36241
+ event.key !== KEYS51.ESCAPE || // or unless using arrows (to move between buttons)
36275
36242
  isArrowKey2(event.key) && isInputLike(event.target)
36276
36243
  ) {
36277
36244
  return;
36278
36245
  }
36279
- if (event.key === KEYS53.QUESTION_MARK) {
36246
+ if (event.key === KEYS51.QUESTION_MARK) {
36280
36247
  this.setState({
36281
36248
  openDialog: { name: "help" }
36282
36249
  });
36283
36250
  return;
36284
- } else if (event.key.toLowerCase() === KEYS53.E && event.shiftKey && event[KEYS53.CTRL_OR_CMD]) {
36251
+ } else if (event.key.toLowerCase() === KEYS51.E && event.shiftKey && event[KEYS51.CTRL_OR_CMD]) {
36285
36252
  event.preventDefault();
36286
36253
  this.setState({ openDialog: { name: "imageExport" } });
36287
36254
  return;
36288
36255
  }
36289
- if (event.key === KEYS53.PAGE_UP || event.key === KEYS53.PAGE_DOWN) {
36256
+ if (event.key === KEYS51.PAGE_UP || event.key === KEYS51.PAGE_DOWN) {
36290
36257
  let offset = (event.shiftKey ? this.state.width : this.state.height) / this.state.zoom.value;
36291
- if (event.key === KEYS53.PAGE_DOWN) {
36258
+ if (event.key === KEYS51.PAGE_DOWN) {
36292
36259
  offset = -offset;
36293
36260
  }
36294
36261
  if (event.shiftKey) {
@@ -36304,7 +36271,7 @@ var App = class _App extends React44.Component {
36304
36271
  if (this.state.openDialog?.name === "elementLinkSelector") {
36305
36272
  return;
36306
36273
  }
36307
- if (event.key === KEYS53.ALT) {
36274
+ if (event.key === KEYS51.ALT) {
36308
36275
  if (getFeatureFlag4("COMPLEX_BINDINGS")) {
36309
36276
  this.handleSkipBindMode();
36310
36277
  } else {
@@ -36315,7 +36282,7 @@ var App = class _App extends React44.Component {
36315
36282
  return;
36316
36283
  }
36317
36284
  const shouldPreventToolSwitching = this.props.viewModeEnabled === true;
36318
- if (!shouldPreventToolSwitching && this.state.viewModeEnabled && event.key === KEYS53.ESCAPE) {
36285
+ if (!shouldPreventToolSwitching && this.state.viewModeEnabled && event.key === KEYS51.ESCAPE) {
36319
36286
  this.setActiveTool({ type: "selection" });
36320
36287
  return;
36321
36288
  }
@@ -36346,7 +36313,7 @@ var App = class _App extends React44.Component {
36346
36313
  }
36347
36314
  event.stopPropagation();
36348
36315
  return;
36349
- } else if (event.key === KEYS53.Q) {
36316
+ } else if (event.key === KEYS51.Q) {
36350
36317
  this.toggleLock("keyboard");
36351
36318
  event.stopPropagation();
36352
36319
  return;
@@ -36355,7 +36322,7 @@ var App = class _App extends React44.Component {
36355
36322
  if (this.state.viewModeEnabled) {
36356
36323
  return;
36357
36324
  }
36358
- if (event[KEYS53.CTRL_OR_CMD] && !event.repeat) {
36325
+ if (event[KEYS51.CTRL_OR_CMD] && !event.repeat) {
36359
36326
  if (getFeatureFlag4("COMPLEX_BINDINGS")) {
36360
36327
  this.resetDelayedBindMode();
36361
36328
  }
@@ -36390,13 +36357,13 @@ var App = class _App extends React44.Component {
36390
36357
  const step = this.getEffectiveGridSize() && (event.shiftKey ? ELEMENT_TRANSLATE_AMOUNT : this.getEffectiveGridSize()) || (event.shiftKey ? ELEMENT_SHIFT_TRANSLATE_AMOUNT : ELEMENT_TRANSLATE_AMOUNT);
36391
36358
  let offsetX = 0;
36392
36359
  let offsetY = 0;
36393
- if (event.key === KEYS53.ARROW_LEFT) {
36360
+ if (event.key === KEYS51.ARROW_LEFT) {
36394
36361
  offsetX = -step;
36395
- } else if (event.key === KEYS53.ARROW_RIGHT) {
36362
+ } else if (event.key === KEYS51.ARROW_RIGHT) {
36396
36363
  offsetX = step;
36397
- } else if (event.key === KEYS53.ARROW_UP) {
36364
+ } else if (event.key === KEYS51.ARROW_UP) {
36398
36365
  offsetY = -step;
36399
- } else if (event.key === KEYS53.ARROW_DOWN) {
36366
+ } else if (event.key === KEYS51.ARROW_DOWN) {
36400
36367
  offsetY = step;
36401
36368
  }
36402
36369
  selectedElements.forEach((element) => {
@@ -36414,11 +36381,11 @@ var App = class _App extends React44.Component {
36414
36381
  });
36415
36382
  this.scene.triggerUpdate();
36416
36383
  event.preventDefault();
36417
- } else if (event.key === KEYS53.ENTER) {
36384
+ } else if (event.key === KEYS51.ENTER) {
36418
36385
  const selectedElements = this.scene.getSelectedElements(this.state);
36419
36386
  if (selectedElements.length === 1) {
36420
36387
  const selectedElement = selectedElements[0];
36421
- if (event[KEYS53.CTRL_OR_CMD] || isLineElement8(selectedElement)) {
36388
+ if (event[KEYS51.CTRL_OR_CMD] || isLineElement8(selectedElement)) {
36422
36389
  if (isLinearElement12(selectedElement)) {
36423
36390
  if (!this.state.selectedLinearElement?.isEditing || this.state.selectedLinearElement.elementId !== selectedElement.id) {
36424
36391
  this.store.scheduleCapture();
@@ -36453,26 +36420,26 @@ var App = class _App extends React44.Component {
36453
36420
  }
36454
36421
  }
36455
36422
  }
36456
- if (event.key === KEYS53.SPACE && gesture.pointers.size === 0) {
36423
+ if (event.key === KEYS51.SPACE && gesture.pointers.size === 0) {
36457
36424
  isHoldingSpace = true;
36458
36425
  setCursor(this.interactiveCanvas, CURSOR_TYPE4.GRAB);
36459
36426
  event.preventDefault();
36460
36427
  }
36461
- if ((event.key === KEYS53.G || event.key === KEYS53.S) && !event.altKey && !event[KEYS53.CTRL_OR_CMD]) {
36428
+ if ((event.key === KEYS51.G || event.key === KEYS51.S) && !event.altKey && !event[KEYS51.CTRL_OR_CMD]) {
36462
36429
  const selectedElements = this.scene.getSelectedElements(this.state);
36463
36430
  if (this.state.activeTool.type === "selection" && !selectedElements.length) {
36464
36431
  return;
36465
36432
  }
36466
- if (event.key === KEYS53.G && (hasBackground(this.state.activeTool.type) || selectedElements.some((element) => hasBackground(element.type)))) {
36433
+ if (event.key === KEYS51.G && (hasBackground(this.state.activeTool.type) || selectedElements.some((element) => hasBackground(element.type)))) {
36467
36434
  this.setState({ openPopup: "elementBackground" });
36468
36435
  event.stopPropagation();
36469
36436
  }
36470
- if (event.key === KEYS53.S) {
36437
+ if (event.key === KEYS51.S) {
36471
36438
  this.setState({ openPopup: "elementStroke" });
36472
36439
  event.stopPropagation();
36473
36440
  }
36474
36441
  }
36475
- if (!event[KEYS53.CTRL_OR_CMD] && event.shiftKey && event.key.toLowerCase() === KEYS53.F) {
36442
+ if (!event[KEYS51.CTRL_OR_CMD] && event.shiftKey && event.key.toLowerCase() === KEYS51.F) {
36476
36443
  const selectedElements = this.scene.getSelectedElements(this.state);
36477
36444
  if (this.state.activeTool.type === "selection" && !selectedElements.length) {
36478
36445
  return;
@@ -36488,8 +36455,8 @@ var App = class _App extends React44.Component {
36488
36455
  }
36489
36456
  }
36490
36457
  const lowerCased = event.key.toLocaleLowerCase();
36491
- const isPickingStroke = lowerCased === KEYS53.S && event.shiftKey && !event[KEYS53.CTRL_OR_CMD];
36492
- const isPickingBackground = event.key === KEYS53.I || lowerCased === KEYS53.G && event.shiftKey;
36458
+ const isPickingStroke = lowerCased === KEYS51.S && event.shiftKey && !event[KEYS51.CTRL_OR_CMD];
36459
+ const isPickingBackground = event.key === KEYS51.I || lowerCased === KEYS51.G && event.shiftKey;
36493
36460
  if (isPickingStroke || isPickingBackground) {
36494
36461
  this.openEyeDropper({
36495
36462
  type: isPickingStroke ? "stroke" : "background"
@@ -36498,7 +36465,7 @@ var App = class _App extends React44.Component {
36498
36465
  }
36499
36466
  ));
36500
36467
  __publicField(this, "onKeyUp", withBatchedUpdates((event) => {
36501
- if (event.key === KEYS53.SPACE) {
36468
+ if (event.key === KEYS51.SPACE) {
36502
36469
  if (this.state.viewModeEnabled && this.state.activeTool.type !== "laser" || this.state.openDialog?.name === "elementLinkSelector") {
36503
36470
  setCursor(this.interactiveCanvas, CURSOR_TYPE4.GRAB);
36504
36471
  } else if (isSelectionLikeTool(this.state.activeTool.type)) {
@@ -36514,10 +36481,10 @@ var App = class _App extends React44.Component {
36514
36481
  }
36515
36482
  isHoldingSpace = false;
36516
36483
  }
36517
- if (event.key === KEYS53.ALT) {
36484
+ if (event.key === KEYS51.ALT) {
36518
36485
  maybeHandleArrowPointlikeDrag({ app: this, event });
36519
36486
  }
36520
- if (event.key === KEYS53.ALT && this.state.bindMode === "skip" || !event[KEYS53.CTRL_OR_CMD] && !isBindingEnabled2(this.state)) {
36487
+ if (event.key === KEYS51.ALT && this.state.bindMode === "skip" || !event[KEYS51.CTRL_OR_CMD] && !isBindingEnabled2(this.state)) {
36521
36488
  this.setState({
36522
36489
  bindMode: "orbit"
36523
36490
  });
@@ -36545,7 +36512,7 @@ var App = class _App extends React44.Component {
36545
36512
  }
36546
36513
  }
36547
36514
  }
36548
- if (!event[KEYS53.CTRL_OR_CMD]) {
36515
+ if (!event[KEYS51.CTRL_OR_CMD]) {
36549
36516
  const preferenceEnabled = this.state.bindingPreference === "enabled";
36550
36517
  if (this.state.isBindingEnabled !== preferenceEnabled) {
36551
36518
  flushSync3(() => {
@@ -36603,7 +36570,7 @@ var App = class _App extends React44.Component {
36603
36570
  });
36604
36571
  }
36605
36572
  }
36606
- if (!event[KEYS53.CTRL_OR_CMD]) {
36573
+ if (!event[KEYS51.CTRL_OR_CMD]) {
36607
36574
  if (this.flowChartCreator.isCreatingChart) {
36608
36575
  if (this.flowChartCreator.pendingNodes?.length) {
36609
36576
  this.scene.insertElements(this.flowChartCreator.pendingNodes);
@@ -36985,7 +36952,7 @@ var App = class _App extends React44.Component {
36985
36952
  );
36986
36953
  if (selectedElements.length === 1 && isLinearElement12(selectedElements[0])) {
36987
36954
  const selectedLinearElement = selectedElements[0];
36988
- if ((event[KEYS53.CTRL_OR_CMD] && isSimpleArrow(selectedLinearElement) || isLineElement8(selectedLinearElement)) && (!this.state.selectedLinearElement?.isEditing || this.state.selectedLinearElement.elementId !== selectedLinearElement.id)) {
36955
+ if ((event[KEYS51.CTRL_OR_CMD] && isSimpleArrow(selectedLinearElement) || isLineElement8(selectedLinearElement)) && (!this.state.selectedLinearElement?.isEditing || this.state.selectedLinearElement.elementId !== selectedLinearElement.id)) {
36989
36956
  this.actionManager.executeAction(actionToggleLinearEditor);
36990
36957
  return;
36991
36958
  } else if (this.state.selectedLinearElement && isElbowArrow10(selectedElements[0])) {
@@ -37070,7 +37037,7 @@ var App = class _App extends React44.Component {
37070
37037
  }
37071
37038
  }
37072
37039
  resetCursor(this.interactiveCanvas);
37073
- if (!event[KEYS53.CTRL_OR_CMD] && !this.state.viewModeEnabled) {
37040
+ if (!event[KEYS51.CTRL_OR_CMD] && !this.state.viewModeEnabled) {
37074
37041
  const hitElement = this.getElementAtPosition(sceneX, sceneY);
37075
37042
  if (isIframeLikeElement2(hitElement)) {
37076
37043
  this.setState({
@@ -37636,7 +37603,7 @@ var App = class _App extends React44.Component {
37636
37603
  setCursor(this.interactiveCanvas, CURSOR_TYPE4.AUTO);
37637
37604
  } else if (
37638
37605
  // if using cmd/ctrl, we're not dragging
37639
- !event[KEYS53.CTRL_OR_CMD] && // editing text -> don't show move cursor when hovering over its bbox
37606
+ !event[KEYS51.CTRL_OR_CMD] && // editing text -> don't show move cursor when hovering over its bbox
37640
37607
  hitElement?.id !== this.state.editingTextElement?.id
37641
37608
  ) {
37642
37609
  if ((hitElement || this.isHittingCommonBoundingBoxOfSelectedElements(
@@ -38332,7 +38299,7 @@ var App = class _App extends React44.Component {
38332
38299
  ) : makeNextSelectedElementIds2({}, prevState)
38333
38300
  }));
38334
38301
  } else if (hitElement != null) {
38335
- if (event[KEYS53.CTRL_OR_CMD]) {
38302
+ if (event[KEYS51.CTRL_OR_CMD]) {
38336
38303
  if (event.altKey) {
38337
38304
  if (this.state.openDialog?.name === "elementLinkSelector") {
38338
38305
  this.setOpenDialog(null);
@@ -38541,7 +38508,7 @@ var App = class _App extends React44.Component {
38541
38508
  const [gridX, gridY] = getGridPoint2(
38542
38509
  sceneX,
38543
38510
  sceneY,
38544
- this.lastPointerDownEvent?.[KEYS53.CTRL_OR_CMD] ? null : this.getEffectiveGridSize()
38511
+ this.lastPointerDownEvent?.[KEYS51.CTRL_OR_CMD] ? null : this.getEffectiveGridSize()
38545
38512
  );
38546
38513
  const element = newIframeElement({
38547
38514
  type: "iframe",
@@ -38571,7 +38538,7 @@ var App = class _App extends React44.Component {
38571
38538
  const [gridX, gridY] = getGridPoint2(
38572
38539
  sceneX,
38573
38540
  sceneY,
38574
- this.lastPointerDownEvent?.[KEYS53.CTRL_OR_CMD] ? null : this.getEffectiveGridSize()
38541
+ this.lastPointerDownEvent?.[KEYS51.CTRL_OR_CMD] ? null : this.getEffectiveGridSize()
38575
38542
  );
38576
38543
  const embedLink = getEmbedLink2(link);
38577
38544
  if (!embedLink) {
@@ -38611,7 +38578,7 @@ var App = class _App extends React44.Component {
38611
38578
  const [gridX, gridY] = getGridPoint2(
38612
38579
  sceneX,
38613
38580
  sceneY,
38614
- this.lastPointerDownEvent?.[KEYS53.CTRL_OR_CMD] ? null : this.getEffectiveGridSize()
38581
+ this.lastPointerDownEvent?.[KEYS51.CTRL_OR_CMD] ? null : this.getEffectiveGridSize()
38615
38582
  );
38616
38583
  const topLayerFrame = addToFrameUnderCursor ? this.getTopLayerFrameAtSceneCoords({
38617
38584
  x: gridX,
@@ -38717,7 +38684,7 @@ var App = class _App extends React44.Component {
38717
38684
  const [gridX, gridY] = getGridPoint2(
38718
38685
  pointerDownState.origin.x,
38719
38686
  pointerDownState.origin.y,
38720
- event[KEYS53.CTRL_OR_CMD] ? null : this.getEffectiveGridSize()
38687
+ event[KEYS51.CTRL_OR_CMD] ? null : this.getEffectiveGridSize()
38721
38688
  );
38722
38689
  const topLayerFrame = this.getTopLayerFrameAtSceneCoords({
38723
38690
  x: gridX,
@@ -38853,7 +38820,7 @@ var App = class _App extends React44.Component {
38853
38820
  const [gridX, gridY] = getGridPoint2(
38854
38821
  pointerDownState.origin.x,
38855
38822
  pointerDownState.origin.y,
38856
- this.lastPointerDownEvent?.[KEYS53.CTRL_OR_CMD] ? null : this.getEffectiveGridSize()
38823
+ this.lastPointerDownEvent?.[KEYS51.CTRL_OR_CMD] ? null : this.getEffectiveGridSize()
38857
38824
  );
38858
38825
  const topLayerFrame = this.getTopLayerFrameAtSceneCoords({
38859
38826
  x: gridX,
@@ -38901,7 +38868,7 @@ var App = class _App extends React44.Component {
38901
38868
  const [gridX, gridY] = getGridPoint2(
38902
38869
  pointerDownState.origin.x,
38903
38870
  pointerDownState.origin.y,
38904
- this.lastPointerDownEvent?.[KEYS53.CTRL_OR_CMD] ? null : this.getEffectiveGridSize()
38871
+ this.lastPointerDownEvent?.[KEYS51.CTRL_OR_CMD] ? null : this.getEffectiveGridSize()
38905
38872
  );
38906
38873
  const constructorOpts = {
38907
38874
  x: gridX,
@@ -39503,7 +39470,7 @@ var App = class _App extends React44.Component {
39503
39470
  let [gridX, gridY] = getGridPoint2(
39504
39471
  pointerCoords.x,
39505
39472
  pointerCoords.y,
39506
- event[KEYS53.CTRL_OR_CMD] ? null : this.getEffectiveGridSize()
39473
+ event[KEYS51.CTRL_OR_CMD] ? null : this.getEffectiveGridSize()
39507
39474
  );
39508
39475
  const image = isInitializedImageElement3(newElement7) && this.imageCache.get(newElement7.fileId)?.image;
39509
39476
  const aspectRatio = image && !(image instanceof Promise) ? image.width / image.height : null;
@@ -39569,7 +39536,7 @@ var App = class _App extends React44.Component {
39569
39536
  const [x, y] = getGridPoint2(
39570
39537
  pointerCoords.x - pointerDownState.resize.offset.x,
39571
39538
  pointerCoords.y - pointerDownState.resize.offset.y,
39572
- event[KEYS53.CTRL_OR_CMD] ? null : this.getEffectiveGridSize()
39539
+ event[KEYS51.CTRL_OR_CMD] ? null : this.getEffectiveGridSize()
39573
39540
  );
39574
39541
  const croppingElement = this.scene.getNonDeletedElementsMap().get(this.state.croppingElementId);
39575
39542
  if (transformHandleType && croppingElement && isImageElement9(croppingElement)) {
@@ -39581,7 +39548,7 @@ var App = class _App extends React44.Component {
39581
39548
  const [gridX, gridY] = getGridPoint2(
39582
39549
  pointerCoords.x,
39583
39550
  pointerCoords.y,
39584
- event[KEYS53.CTRL_OR_CMD] ? null : this.getEffectiveGridSize()
39551
+ event[KEYS51.CTRL_OR_CMD] ? null : this.getEffectiveGridSize()
39585
39552
  );
39586
39553
  const dragOffset = {
39587
39554
  x: gridX - pointerDownState.originInGrid.x,
@@ -39645,7 +39612,7 @@ var App = class _App extends React44.Component {
39645
39612
  let [resizeX, resizeY] = getGridPoint2(
39646
39613
  pointerCoords.x - pointerDownState.resize.offset.x,
39647
39614
  pointerCoords.y - pointerDownState.resize.offset.y,
39648
- event[KEYS53.CTRL_OR_CMD] ? null : this.getEffectiveGridSize()
39615
+ event[KEYS51.CTRL_OR_CMD] ? null : this.getEffectiveGridSize()
39649
39616
  );
39650
39617
  const frameElementsOffsetsMap = /* @__PURE__ */ new Map();
39651
39618
  selectedFrames.forEach((frame) => {
@@ -39664,7 +39631,7 @@ var App = class _App extends React44.Component {
39664
39631
  const [gridX, gridY] = getGridPoint2(
39665
39632
  pointerCoords.x,
39666
39633
  pointerCoords.y,
39667
- event[KEYS53.CTRL_OR_CMD] ? null : this.getEffectiveGridSize()
39634
+ event[KEYS51.CTRL_OR_CMD] ? null : this.getEffectiveGridSize()
39668
39635
  );
39669
39636
  const dragOffset = {
39670
39637
  x: gridX - pointerDownState.originInGrid.x,
@@ -39717,22 +39684,13 @@ var App = class _App extends React44.Component {
39717
39684
  });
39718
39685
  __publicField(this, "getContextMenuItems", (type) => {
39719
39686
  const options = [];
39720
- options.push(actionCopyAsPng, actionCopyAsSvg);
39721
39687
  if (type === "canvas") {
39722
39688
  if (this.state.viewModeEnabled) {
39723
- return [
39724
- ...options,
39725
- actionToggleGridMode,
39726
- actionToggleZenMode,
39727
- actionToggleViewMode,
39728
- actionToggleStats
39729
- ];
39689
+ return [actionToggleGridMode, actionToggleViewMode, actionToggleStats];
39730
39690
  }
39731
39691
  return [
39732
39692
  actionPaste,
39733
39693
  CONTEXT_MENU_SEPARATOR,
39734
- actionCopyAsPng,
39735
- actionCopyAsSvg,
39736
39694
  copyText,
39737
39695
  CONTEXT_MENU_SEPARATOR,
39738
39696
  actionSelectAll,
@@ -39742,7 +39700,6 @@ var App = class _App extends React44.Component {
39742
39700
  actionToggleObjectsSnapMode,
39743
39701
  actionToggleArrowBinding,
39744
39702
  actionToggleMidpointSnapping,
39745
- actionToggleZenMode,
39746
39703
  actionToggleViewMode,
39747
39704
  actionToggleStats
39748
39705
  ];
@@ -39769,21 +39726,17 @@ var App = class _App extends React44.Component {
39769
39726
  actionWrapSelectionInFrame,
39770
39727
  CONTEXT_MENU_SEPARATOR,
39771
39728
  actionToggleCropEditor,
39729
+ actionArrangeElements,
39772
39730
  actionNormaliseElements,
39773
39731
  CONTEXT_MENU_SEPARATOR,
39774
39732
  ...options,
39775
39733
  CONTEXT_MENU_SEPARATOR,
39776
- actionCopyStyles,
39777
- actionPasteStyles,
39778
- CONTEXT_MENU_SEPARATOR,
39779
39734
  actionGroup,
39780
39735
  actionTextAutoResize,
39781
39736
  actionUnbindText,
39782
39737
  actionBindText,
39783
39738
  actionWrapTextInContainer,
39784
39739
  actionUngroup,
39785
- CONTEXT_MENU_SEPARATOR,
39786
- actionAddToLibrary,
39787
39740
  ...zIndexActions,
39788
39741
  CONTEXT_MENU_SEPARATOR,
39789
39742
  actionFlipHorizontal,
@@ -39804,7 +39757,7 @@ var App = class _App extends React44.Component {
39804
39757
  __publicField(this, "handleWheel", withBatchedUpdates(
39805
39758
  (event) => {
39806
39759
  if (!(event.target instanceof HTMLCanvasElement || event.target instanceof HTMLTextAreaElement || event.target instanceof HTMLIFrameElement || event.target instanceof HTMLElement && event.target.classList.contains(CLASSES11.FRAME_NAME))) {
39807
- if (event[KEYS53.CTRL_OR_CMD]) {
39760
+ if (event[KEYS51.CTRL_OR_CMD]) {
39808
39761
  event.preventDefault();
39809
39762
  }
39810
39763
  return;
@@ -41971,12 +41924,12 @@ var App = class _App extends React44.Component {
41971
41924
  const isElbowArrowOnly = selectedElements.findIndex(isElbowArrow10) === 0;
41972
41925
  return {
41973
41926
  origin,
41974
- withCmdOrCtrl: event[KEYS53.CTRL_OR_CMD],
41927
+ withCmdOrCtrl: event[KEYS51.CTRL_OR_CMD],
41975
41928
  originInGrid: tupleToCoors(
41976
41929
  getGridPoint2(
41977
41930
  origin.x,
41978
41931
  origin.y,
41979
- event[KEYS53.CTRL_OR_CMD] || isElbowArrowOnly ? null : this.getEffectiveGridSize()
41932
+ event[KEYS51.CTRL_OR_CMD] || isElbowArrowOnly ? null : this.getEffectiveGridSize()
41980
41933
  )
41981
41934
  ),
41982
41935
  scrollbars: isOverScrollBars(
@@ -42117,7 +42070,7 @@ var App = class _App extends React44.Component {
42117
42070
  }
42118
42071
  onKeyUpFromPointerDownHandler(pointerDownState) {
42119
42072
  return withBatchedUpdates((event) => {
42120
- event.key === KEYS53.ALT && event.preventDefault();
42073
+ event.key === KEYS51.ALT && event.preventDefault();
42121
42074
  if (this.maybeHandleResize(pointerDownState, event)) {
42122
42075
  return;
42123
42076
  }
@@ -42139,7 +42092,7 @@ var App = class _App extends React44.Component {
42139
42092
  const [gridX2, gridY2] = getGridPoint2(
42140
42093
  pointerCoords.x,
42141
42094
  pointerCoords.y,
42142
- event[KEYS53.CTRL_OR_CMD] ? null : this.getEffectiveGridSize()
42095
+ event[KEYS51.CTRL_OR_CMD] ? null : this.getEffectiveGridSize()
42143
42096
  );
42144
42097
  let index = this.state.selectedLinearElement.initialState.segmentMidpoint.index;
42145
42098
  if (index < 0) {
@@ -42204,7 +42157,7 @@ var App = class _App extends React44.Component {
42204
42157
  const [gridX, gridY] = getGridPoint2(
42205
42158
  pointerCoords.x,
42206
42159
  pointerCoords.y,
42207
- event[KEYS53.CTRL_OR_CMD] ? null : this.getEffectiveGridSize()
42160
+ event[KEYS51.CTRL_OR_CMD] ? null : this.getEffectiveGridSize()
42208
42161
  );
42209
42162
  if (pointerDownState.resize.isResizing) {
42210
42163
  pointerDownState.lastCoords.x = pointerCoords.x;
@@ -42252,7 +42205,7 @@ var App = class _App extends React44.Component {
42252
42205
  this.state.selectedLinearElement,
42253
42206
  pointerCoords,
42254
42207
  this,
42255
- !event[KEYS53.CTRL_OR_CMD],
42208
+ !event[KEYS51.CTRL_OR_CMD],
42256
42209
  this.scene
42257
42210
  );
42258
42211
  if (!ret) {
@@ -42450,7 +42403,7 @@ var App = class _App extends React44.Component {
42450
42403
  dragOffset,
42451
42404
  this.scene,
42452
42405
  snapOffset,
42453
- event[KEYS53.CTRL_OR_CMD] ? null : this.getEffectiveGridSize()
42406
+ event[KEYS51.CTRL_OR_CMD] ? null : this.getEffectiveGridSize()
42454
42407
  );
42455
42408
  }
42456
42409
  this.setState({
@@ -43421,7 +43374,7 @@ var App = class _App extends React44.Component {
43421
43374
  return;
43422
43375
  }
43423
43376
  const selectedTextEditingContainer = this.getSelectedTextEditingContainerAtPosition(hitElement, sceneCoords);
43424
- if (activeTool.type === this.state.preferredSelectionTool.type && !this.state.editingTextElement && !pointerDownState.drag.hasOccurred && !pointerDownState.hit.wasAddedToSelection && !childEvent.shiftKey && !childEvent[KEYS53.CTRL_OR_CMD] && !childEvent.altKey && childEvent.pointerType !== "touch" && hitElement && (isTextElement19(hitElement) && this.state.selectedElementIds[hitElement.id] && this.scene.getSelectedElements(this.state).length === 1 || selectedTextEditingContainer)) {
43377
+ if (activeTool.type === this.state.preferredSelectionTool.type && !this.state.editingTextElement && !pointerDownState.drag.hasOccurred && !pointerDownState.hit.wasAddedToSelection && !childEvent.shiftKey && !childEvent[KEYS51.CTRL_OR_CMD] && !childEvent.altKey && childEvent.pointerType !== "touch" && hitElement && (isTextElement19(hitElement) && this.state.selectedElementIds[hitElement.id] && this.scene.getSelectedElements(this.state).length === 1 || selectedTextEditingContainer)) {
43425
43378
  this.startTextEditing({
43426
43379
  sceneX: sceneCoords.x,
43427
43380
  sceneY: sceneCoords.y,