From 7a17fc7995e0e3b704a7fee59a4d3870db88f51a Mon Sep 17 00:00:00 2001 From: Steffen Becker Date: Wed, 2 Sep 2026 16:06:13 +0000 Subject: [PATCH] fix: Paste is one button, and its menu always opens Split in two, its command half pasted straight from the clipboard and only the caret offered the plain-text variant. The whole button now opens the menu, whose first entry is that same straight paste. --- src/lib/components/ribbon/tabs/HomeTab.svelte | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/lib/components/ribbon/tabs/HomeTab.svelte b/src/lib/components/ribbon/tabs/HomeTab.svelte index 246afba..ef4dce0 100644 --- a/src/lib/components/ribbon/tabs/HomeTab.svelte +++ b/src/lib/components/ribbon/tabs/HomeTab.svelte @@ -191,9 +191,8 @@ title={`${t().contextMenu.paste} (${withShortcut('Ctrl+V')})`} disabled={!editor} caret - caretActive={isMenuOpen('paste')} - onclick={() => paste(false)} - onCaret={() => toggleMenu('paste')} + active={isMenuOpen('paste')} + onclick={() => toggleMenu('paste')} /> {#if isMenuOpen('paste')}