@flozy/editor 8.0.2 → 8.0.3

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.
@@ -446,6 +446,12 @@ const CommonEditor = /*#__PURE__*/forwardRef((props, ref) => {
446
446
  }
447
447
  }
448
448
  }
449
+ } else if (event.key === "Delete") {
450
+ const everythingSelect = isEverythingSelected(editor);
451
+ if (everythingSelect) {
452
+ event.preventDefault();
453
+ dialogRef.current?.handleOpen();
454
+ }
449
455
  }
450
456
  }, [chars, target, mentions, setMentions, search, type, mentionsRef]);
451
457
  const Overlay = collaborativeEditor && !isReadOnly ? RemoteCursorOverlay : React.Fragment;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flozy/editor",
3
- "version": "8.0.2",
3
+ "version": "8.0.3",
4
4
  "description": "An Editor for flozy app brain",
5
5
  "files": [
6
6
  "dist"