next carries dock-gaps (#3383), whose IME commit a0b1c35a8f is the same change as
this branch's 8c2cd95de3, and Skylar's focus and text-field work.
Conflicts:
- runtime/ime.rs, runtime/egui/ime.rs, testing/host_key_trials.rs: next's only
change to these files is a0b1c35a8f, which this branch already holds and has
replaced with the fence built on egui's pending_ime_reset (a3a58be575). This
branch's side is kept. a0b1c35a8f's trial stays in its adapted form
(an_app_editor_s_own_reset_at_the_press_reaches_it_and_it_composes_again, run
with the reset in the output and through egui alone).
- runtime/egui/fixture.rs: ResettingEditor and host_resetting_ime_editor keep
this branch's form (in_output, ask, a press inside the editor's rect). next's
root focus fact in run_frame (ea6febd719) merged cleanly.
- runtime/focus.rs: State keeps candidates_seen and takes next's
surrender_after_scopes and surrender_deferred; tab_to_egui stays removed. The
end hook takes the app's egui widgets first, then runs next's deferred and
after-scopes surrenders; next's block that surrendered a component widget
egui's Tab focused goes with the removed egui-Tab path.
No code in next calls host_stop or the removed egui-Tab path.
The focus service takes egui's focus candidates of the pass (Memory::focus_candidates) at every
order-dependent registration and at the end hook: each widget no component made becomes a stop of
the app's own, where it was drawn among the framework's stops, a text stop for a TextEdit. Recorded
views and lazy children replay them with their transcripts.
A bare Tab is the framework's move unless an egui popup is open or the app's focused widget keeps
Tab by its egui key filter. Removed: focus::host_stop and the separate egui-Tab path for windows
without framework stops. The scrim absorber no longer takes key focus.
The windows kit's renderer shares one texture store between the windows, as
eframe's does, applies each window's texture changes when it paints and panics
on a change to a texture it has not allocated. A frame whose first pass asks
for another and whose second shows a dock with a native float, as an app's
start-up, paints its float's window without that panic.
The app's reset of a pass is the one egui publishes: Context::pending_ime_reset,
else the IME output's own field. The interrupt of an app editor reuses it, the
engine records it, and a request the app publishes while the fence is up becomes
the one the fence waits for. A completion answers its request and every older one.
TabStripOutput reports the overflow button's rect and access node id while
some tabs do not fit. The dock group passes it on (DockGroupOutput::overflow,
through the memoized tab row so a replay moves it with the row), and the dock
area reports it beside the group's tabs as SourceKind::Overflow, named by the
group's first panel, so a host can give the button an automation id.
A press during the app's own editor's composition interrupts it, and the
engine wrote its own reset request over the one the editor wrote in the same
output: the platform answered only the engine's id, so the app never got the
completion its own fence waits for, and the fence (which took every IME event)
dropped it anyway.
The interrupt keeps a reset request the app's output already carries, and the
engine waits for that one. The app's reset requests are recorded from its IME
output; their completions and retirements stay in egui's input for the app,
and a completion of the request the fence waits for ends the fence. Late
events of the interrupted composition stay fenced, and an editor that asks
for no reset is fenced by the engine's own request as before.
A press during the app's own editor's composition interrupts it, and the
engine wrote its own reset request over the one the editor wrote in the same
output: the platform answered only the engine's id, so the app never got the
completion its own fence waits for, and the fence (which took every IME event)
dropped it anyway.
The interrupt keeps a reset request the app's output already carries, and the
engine waits for that one. The app's reset requests are recorded from its IME
output; their completions and retirements stay in egui's input for the app,
and a completion of the request the fence waits for ends the fence. Late
events of the interrupted composition stay fenced, and an editor that asks
for no reset is fenced by the engine's own request as before.
focus::host_stop registers an app's own egui widget as a focus stop
(Stop::host, as host_canvas does, without marking a document canvas), so a
window that has framework stops and the app's own widgets keeps one framework
Tab order holding both, in registration order.
A canvas keeps Tab only while it has the focus. With nothing focused a bare Tab
moves focus into the window or toggles the panels, even for a canvas that
keeps Tab, as the unfocused canvas's claims already never take Tab: the canvas
cannot trap keyboard navigation. The last assertion of
a_host_canvas_marks_the_window_and_tab_toggles_its_panels changes to this
rule: with nothing focused, the Tab toggles the panels instead of reaching the
canvas in egui. The unused Strip::canvas field goes with the old rule.
While an app's own egui widget or popup has the focus, a plain Enter stays in
egui's input for it and no window Submit comes of it, as with Tab and Escape.
The window's Submit was offered beside the press, so an app editor read one
Enter and an app that returns the window's Submit to egui read two; an app
TextEdit in a framework dialog also fired the dialog's default button. With
nothing focused the plain Enter stays the window's Submit and in egui's input.
A host body keeps its presses and its egui focus, so the group takes
no focus and DockAreaOutput::focused never names the panel clicked
into. BodyCx::pressed_within reports a primary press in the body's
rect on its layer whatever took it, sharing the press geometry with
surface_pressed, and the dock area reports the group's shown panel as
pressed.
The engine fenced only framework editors. An app's own editor (an egui
reader that writes the pass's IME output) saw the late deletion and
commit of a composition a click ended arrive in the next frame (the
one-press rule holds them), with no composition active, so they edited
the text at the new caret. The engine now records the editor from the
IME output it wrote, follows its composition through the IME events
left to it, and on a pointer press during it interrupts in the
editor's own context and drops the IME events until the reset
completes; events after the completion reach the editor.
With only the app's own widgets registered as stops (a hosted canvas),
a bare Tab from nothing or from a host stop that does not keep Tab was
a framework move whose order held the host stops alone: the canvas
took focus and Tab cycled on it, so the app's other egui widgets were
unreachable. The key stage now leaves that Tab to egui (TabToEgui),
whose order holds the host stops and the app's widgets. A Tab that
toggles the chrome stays the framework's.
The 24 Nov main sync (#3300) brought the font manager's preview-service code (#2782), which names LegalText,
PreviewServiceSource, PREVIEW_SERVICE_ENV and PreviewStore on every target, while font-store only had them in its
native-only store and preview modules. craft-font-manager, and with it the craft crate, no longer built for
wasm32 (photocraft's web build).
They move to an ungated service module; PreviewStore::http_client stays native only, and preview keeps its
PreviewStore re-export. The fake store checks a preview-service address only where the native check exists.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A click on a number field's value put the caret where it landed and kept
the shown text, so with every decimal written ("0.00"), a click and
"0.5" typed made "0.000.5", which applies nothing. A photo editor's
value field selects its whole value when clicked, so typing replaces it.
NumberField::select_on_focus asks for that, as TextField's does: focus by
key or request selects the value at once, a plain click selects it once
released, and a drag keeps the range it makes. SliderField passes it to
its number field.