@sheetxl/grid-react 0.3.4 → 0.3.5

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.
@@ -1,5 +1,5 @@
1
1
  Name: @sheetxl/utils
2
- Version: 0.3.4
2
+ Version: 0.3.5
3
3
  License: SEE LICENSE IN <LICENSE>
4
4
  Private: false
5
5
  Description: Utils - Utilities used by most SheetXL components.
@@ -21,7 +21,7 @@ https://www.sheetxl.com/licensing-pricing
21
21
  ---
22
22
 
23
23
  Name: @sheetxl/utils-react
24
- Version: 0.3.4
24
+ Version: 0.3.5
25
25
  License: SEE LICENSE IN <LICENSE>
26
26
  Private: false
27
27
  Description: Utils React - Utilities for React capabilities needed for all SheetXL components.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/grid-react - Grid - Advanced data grid component for React - v0.3.4
2
+ * @license @sheetxl/grid-react - Grid - Advanced data grid component for React - v0.3.5
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1671,8 +1671,20 @@ const kn = () => "sheetxl-ui-" + Mn++, Rn = o["useId".toString()], Pn = null !=
1671
1671
  } else if ("keyboard" === t3.eventType) {
1672
1672
  const n3 = t3.event;
1673
1673
  if ($2.current) {
1674
- n3.key, $2.current.events, $2.current.events.push(t3);
1675
- for (let e6 = 0; e6 < $2.current.editorRefsDispatchEditorEvent.length; e6++) $2.current.editorRefsDispatchEditorEvent[e6](t3);
1674
+ let e6 = false;
1675
+ switch (n3.which) {
1676
+ case bt:
1677
+ case Et:
1678
+ case St:
1679
+ case _t:
1680
+ case yt:
1681
+ case xt:
1682
+ e6 = true;
1683
+ }
1684
+ if (!e6) {
1685
+ $2.current.events.push(t3);
1686
+ for (let e7 = 0; e7 < $2.current.editorRefsDispatchEditorEvent.length; e7++) $2.current.editorRefsDispatchEditorEvent[e7](t3);
1687
+ }
1676
1688
  } else {
1677
1689
  if (w2(n3, t3.coords)) {
1678
1690
  let n4;
@@ -1719,7 +1731,6 @@ const kn = () => "sheetxl-ui-" + Mn++, Rn = o["useId".toString()], Pn = null !=
1719
1731
  n2 && $2.current?.coords && n2.scrollCellCoordsIntoView($2.current.coords);
1720
1732
  })));
1721
1733
  }, [V2]), s(() => {
1722
- if (P2.current && ne.isEqualCells(P2.current, S2)) return;
1723
1734
  F2.current = S2;
1724
1735
  const e5 = $2.current?.coords;
1725
1736
  if (!ne.isEqualCells(e5, S2)) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sheetxl/grid-react",
3
3
  "description": "Grid - Advanced data grid component for React",
4
- "version": "0.3.4",
4
+ "version": "0.3.5",
5
5
  "license": "SEE LICENSE IN <LICENSE>",
6
6
  "type": "module",
7
7
  "exports": {
@@ -30,8 +30,8 @@
30
30
  "table"
31
31
  ],
32
32
  "dependencies": {
33
- "@sheetxl/utils": "^0.3.4",
34
- "@sheetxl/utils-react": "^0.3.4",
33
+ "@sheetxl/utils": "^0.3.5",
34
+ "@sheetxl/utils-react": "^0.3.5",
35
35
  "clsx": "^2.1.1",
36
36
  "react-merge-refs": "^3.0.2",
37
37
  "react-use": "^17.6.0",