pub enum Action {
PickFiles {
node: NodeId,
revision: u64,
request: u64,
},
ClearFiles {
node: NodeId,
revision: u64,
},
RemoveFile(FileToken),
CopyText {
node: NodeId,
revision: u64,
request: u64,
},
RaiseLayer(NodeId),
ScrollIntoView(NodeId),
SelectRich {
node: NodeId,
revision: u64,
selection: RichSelection,
},
SelectText {
node: NodeId,
revision: u64,
selection: TextSelection,
},
RevealOption {
node: NodeId,
},
ExitMenu {
node: NodeId,
backwards: bool,
},
Focus(NodeId),
ScrollTo {
node: NodeId,
x: f64,
y: f64,
},
}Variants§
PickFiles
ClearFiles
RemoveFile(FileToken)
CopyText
RaiseLayer(NodeId)
Bring a current nonmodal Dialog layer forward without moving its DOM, editor identity or actual focus. The host’s current modal still applies.
ScrollIntoView(NodeId)
Reveal one current physical box using nearest alignment and instant scrolling, without focus or a logical collection controller.
SelectRich
Select a range in the current rich document at its accepted revision.
SelectText
Select an exact UTF-16 range in the current Input value. Stale revisions and offsets inside surrogate pairs are rejected. A host may refuse positions inside a shaped cluster; it must never silently clamp them.
RevealOption
Reveal a mounted option inside its nearest owning listbox, preserving actual combobox focus and the outer document scroll position.
ExitMenu
Leave this named nonmodal Menu’s tree in native Tab order, relative to its return-focus trigger. Does not imply the controlled menu accepted a close.
Focus(NodeId)
Request focus without scrolling. Ok means the host processed the intent; it may decline because of current layout/platform state. Query::Focus reads the actual result; FocusChanged reports actual transitions only.