Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

refactor: simplify Editor component click handling and remove unused keydown event

Andrej Acevski13935d02fcab
diff --git a/apps/web/src/components/common/editor.tsx b/apps/web/src/components/common/editor.tsx
index a0ec8cdc2..283f8edc6 100644
--- a/apps/web/src/components/common/editor.tsx
+++ b/apps/web/src/components/common/editor.tsx
@@ -339,15 +339,10 @@ export function Editor({
<Link2 className="w-4 h-4 text-zinc-600 dark:text-zinc-400" />
</button>
</div>
+ {/* biome-ignore lint/a11y/useKeyWithClickEvents: It adds two characters to the editor */}
<div
className="flex-1 overflow-y-auto cursor-text"
onClick={() => editor.chain().focus().run()}
- onKeyDown={(e) => {
- if (e.key === "Enter" && !e.shiftKey) {
- e.preventDefault();
- editor.chain().focus().enter().run();
- }
- }}
>
<EditorContent
editor={editor}