mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-11-09 12:32:52 +00:00
The page's menu chose its entries from the selections, in a fixed order: a selected Prepare field's menu, then a link's, then the picture's, then a comment's. A selection left from before outranked what was just right-clicked, so with a field selected, a right-click on the empty page (or on a comment) opened the field's menu. The right-click remembers what it went to (`DocView.menu_for`, from the routed hits), and the menu shows that owner's entries when it has a menu, or else the page's (the user's ruling). Add text's right-click is the page's, as before; while a press is held only a link takes its menu. The picture menu's flag and its geometric test go with it. #5900's menu check (no image menu over the picture being cropped, #5835) is the routed owner's too: a right-click that went to the crop (its picture, box or grips) opens no menu, and `crop_contains_point` and `crop_controls_contain`, its second point test, go. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>