@sevenfold/setto-client 0.2.6 → 0.2.7

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.
@@ -22629,6 +22629,17 @@ function T({ k }) {
22629
22629
  e.preventDefault();
22630
22630
  }
22631
22631
  };
22632
+ const handleKeyDown = (e) => {
22633
+ if (!isLinkContext(e.currentTarget)) return;
22634
+ e.stopPropagation();
22635
+ };
22636
+ const handleKeyUp = (e) => {
22637
+ if (!isLinkContext(e.currentTarget)) return;
22638
+ if (e.key === " " || e.key === "Enter") {
22639
+ e.preventDefault();
22640
+ e.stopPropagation();
22641
+ }
22642
+ };
22632
22643
  const commit = (el) => {
22633
22644
  const text = el.textContent ?? "";
22634
22645
  store?.set(k, i18n.language, text);
@@ -22664,6 +22675,8 @@ function T({ k }) {
22664
22675
  onMouseDown: handleMouseDown,
22665
22676
  onMouseUp: handleMouseUp,
22666
22677
  onClick: handleClick,
22678
+ onKeyDown: handleKeyDown,
22679
+ onKeyUp: handleKeyUp,
22667
22680
  style: {
22668
22681
  cursor: "text",
22669
22682
  color: "inherit",