mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-11-04 09:39:45 +00:00
* M8: typing the last page of a range keeps what is typed (#5574) The page-range dialogs (Redact pages, Rotate pages, Duplicate field, Number pages) raised the end to the start on every frame, so the half-typed "1" of "12" became the start before the "2" arrived. The end is now ordered only once its field is no longer being typed into. Number pages no longer lowers the start to a half-typed end, and its preview cannot underflow while the end is below the start. * M8: a test types the last page of Rotate Pages' range (#5574) Rotate Pages' From and to fields are labelled, and a test types "12" after a first page of 5 (pages 5-12 are turned) and "3" left by clicking OK (page 5 alone), as croquete1 asked on #5579. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GbuSKAS2k5248LGFEapMUR * M8: page ranges stay typed while the window is in the background, and OK orders them (#5574) Review follow-up. The end field's typing check used Response::has_focus, which is false while another window is in front, so switching apps halfway through "12" still raised the typed "1" to the start. It now asks egui's memory (widgets::typing_into). OK pressed while the end is still focused (a screen reader's click) orders the range first in Rotate pages, Duplicate field and Redact pages, and Number pages builds its edit from the ordered end, so a reversed range never reaches the edit. --------- Co-authored-by: Claude <noreply@anthropic.com>