An OS window gets WindowAction::Focus; a window on a layer goes to the top of
egui's area order through overlay::raise, which now raises floating windows too.
The window's document canvas holds its declared claims with nothing focused,
so a `KeyUse::CANVAS` stop claimed Up in the frame focus arrived in. The trial
is about a focused component's claims; its stop is a canvas control that marks
no document (`with_chrome_key(false)`).
Floating windows stay out of the overlay's egui order so they stack with the
app's own egui windows, but a listed layer goes above every unlisted one: a
panel floated from a full-window container went beneath the container. A
float whose parent is listed is listed too, above its parent.
A keymap takes Delete and Backspace as one key by default (`DeleteKeys::OneKey`,
Photoshop's rule): a press runs its own key's binding, else the other key's.
`Keymap::with_delete_keys(DeleteKeys::Apart)` keeps them two keys, for an app
that gives them different jobs, and `Matcher` then runs only the pressed key's
binding.
`StackFacts` (system face, semibold family, line ratio) come from one function,
`record_facts`, which `fonts::load` runs on every definitions it gives egui; a
stack's install loads through it with its own providers. Definitions an app
loads without the `semibold` family draw framework titles in the proportional
family.
A focused `Stop::host` (`focus::host_canvas`), whether the framework or the
app's own egui request focused it, is the app's own widget for Escape and its
edit set: Escape, the clipboard events and the edit chords of its edit set stay
in egui's input, as they do for the canvas with nothing focused, instead of
arriving as its `Intent::Cancel` and `Intent::Edit`. egui keeps its focus over
the Escape, and a menu's edit command is the app's. Tab, the arrows and F6
still follow its `KeyUse`.
Conflicts resolved so that next's changes and this branch's fixes both hold:
- keys: next's unfocused-canvas state claims join the key stage's framework claims; the canvas's
declared claims stay the host's (egui keeps their presses).
- overlay: the app's own modal (`FrameInput::app_modal`) joins next's modal stack at the frame it
first showed in.
- docking: the tab-pick trial moves key focus into the group with Tab, since a click on a dock tab
leaves key focus where it is.
The Lasso, Polygonal Lasso and Magnetic Lasso showed only their icon, with
the icon box's empty top-left corner on the pointer, so the outline started
at a blank spot beside the lasso. They now show the solid arrow with its tip
on the pointer and the tool's icon below right of it, as the reference
application does and as the Paint Bucket and Ruler pointers already do.
PaintedCursor::PointerTool gains an optional badge, drawn at the icon's lower
right, so the add / subtract / intersect mark stays; pointer_tool_badged
builds it. pointer_tool keeps its signature.
Tests: the three lassos show the arrow with their icon and the operation's
badge (fails on next: the lasso returned PaintedCursor::Tool); a badged arrow
pointer keeps ink on its hotspot at 1x, 1.25x and 2x with the badge at the
icon's lower right.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
DockArea::focus(panel) is a request of the pass: the group holding the panel picks its tab
(Action::activate in the pass's actions) and its tab row's stop takes key focus while the row
runs, so the next pass's keys route through that group. A titled header focuses its drag band.
BodyHooks::surface_press counted a press as on the surface when no shape won it, and find_under gives no winner exactly where egui's click target is a raw egui widget. A dock group then moved focus to its tab stop on a click on an app's text field or canvas in its body. The press now leaves the surface alone when its click target is such a widget (pointer::foreign_target), for every container that senses Sense::SURFACE.
FrameInput::window_input(WindowInput::Dropped) drops a hosted window's own
events and OS files in the input filter, before injected input joins, so an
agent-driven session's floated panels take only injected input. eframe runs
raw_input_hook for the main window only; the root's input stays the host's.
The test kit's Windows takes the policy; trials cover the drop and a macOS
Control+Click in a hosted window.
A placement saved while photocraft#16595 shrank RAW Develop's window could be 1 pt wide. place() raised it only to the
full-window overlay's minimum, 0 x 0, and since the window now keeps its size nothing grew it again. The minimum reaches
the OS window's min size and the floor a restored placement is fitted to.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>