mirror of
https://github.com/storytold/wordcraft.git
synced 2026-11-18 00:15:44 +00:00
* #1537: Ctrl/Cmd+Shift+V pastes text only when no formatting was copied, as in Word for Windows With formatting picked up by Ctrl/Cmd+Shift+C it still pastes the formatting. Closes #1537, #4943; takes over #1562. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * #1537: review — a browser's Mod+Shift+V paste event pastes text only, once (CodeRabbit) On the web the key no longer pastes as well: the paste event that follows carries the text. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * #1537: review — copied formatting stays for every Mod+Shift+V; a browser's paste after it is ignored (wanikhawar) Copy Formatting keeps its formatting apart from the one-shot Format Painter brush, so a second Mod+Shift+V pastes formatting again instead of text, and Mod+Shift+C no longer arms the brush. After Mod+Shift+V pastes formatting, the browser's paste event for the same keystroke is ignored; paste events read the modifiers held in event order. Only Mod+Shift+V itself falls back to Keep Text Only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FypgCYPZSei56X4AGFPSu5 * #1537: review — one format buffer, formatting-only copy, browser paste suppression only where it exists - ignore_next_paste armed only for Mod+Shift+V on platforms that send a paste event after it (web); never for a rebound key - the ignored paste is dropped before equation and picture-file handling - Event::Paste takes paste_mods so they don't leak into later pastes - Copy Formatting and Format Painter replace each other; a used-up brush no longer hands over to older copied formatting - copied formatting carries no hyperlink or revision marks Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * #1537: review — shared format buffer, no tracked paragraph changes, pointer press ends the paste wait - picked_format strips ParaProps fmt_change/num_change - Format Painter pick is stored in copied_format too; a used-up or cancelled brush leaves it - a pointer press clears ignore_next_paste - docs: repeat-until-replaced wording Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * #1537: review — a caret Paste Formatting keeps the target's own link and tracked marks Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * #1537: review — an unrelated key's modifiers can't steer a later paste event A separate paste_event_mods is set by Mod changes and Mod+V's press, and cleared by any other key, a pointer press or focus change; the release path keeps paste_mods. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * #1537: review — the text-only paste test checks the destination's own formatting stays (CodeRabbit) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * #1537: review — the docs say a Format Painter pick counts as picked-up formatting too (CodeRabbit) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * #1537: review — a dropped paste uses up its modifiers; range Paste Formatting keeps the link (alehel) - The browser paste event dropped after a formatting paste now clears paste_event_mods too, so a later menu-bar paste isn't read as Keep Text Only. Note the no-text clipboard case. - Test that Paste Formatting over a selection keeps the target's hyperlink. - session.rs: copied_format holds a Format Painter pick too. - ROADMAP: entry moved up with the other 2026-11-04 entries; stray blank line dropped. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * #1537: review — the wait for Mod+Shift+V's browser paste ends after a second, so a later menu-bar paste isn't dropped (FredApps) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FypgCX8G9hbs6XYZFsgjbL * #1537: review — an expired paste wait drops the chord's noted Mod+Shift too (CodeRabbit) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FypgCX8G9hbs6XYZFsgjbL * #1537: review — dropping the paired paste uses up its modifiers; range Paste Formatting keeps the target's link Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * #1537: review — restore ui-parity status line; add Paste Formatting row to typing-parity docs/ui-parity.md: the rebase had replaced main's status line with an older one; restore it and prepend this PR's entry. docs/typing-parity.md: add the Ctrl/Cmd+Shift+V row to the Paste section, bump status line and history. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * #1537: Ctrl/Cmd+Shift+V's V release never pastes a second time On desktop the chord's key-down path pastes (text, or the copied formatting) but didn't mark the paste as done, so releasing Shift before V left a plain Mod+V release that ran Paste again through the clipboard-picture hook, inserting the text twice. The canvas's chord now marks the paste done; the global-shortcut path (canvas unfocused, no release seen) doesn't, and a focus change clears the mark so a lost release can't swallow a later Mod+V picture. Docs: web text paste needs the browser to send its paired Paste event; with formatting copied that event is dropped only within about a second of the key. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>