@aortl/admin-react 0.18.4 → 0.18.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.
package/dist/index.mjs CHANGED
@@ -389,8 +389,9 @@ function canonicalize(chord) {
389
389
  parts.push(chord.key);
390
390
  return parts.join("+");
391
391
  }
392
- /** Canonical chord string for a keyboard event; `null` for a bare modifier press. */
392
+ /** Canonical chord string for a keyboard event; `null` for a bare modifier press or a `key`-less synthetic event. */
393
393
  function normalizeEvent(e) {
394
+ if (!e.key) return null;
394
395
  const key = e.key.toLowerCase();
395
396
  if (key === "control" || key === "shift" || key === "alt" || key === "meta") return null;
396
397
  const mods = /* @__PURE__ */ new Set();