pub struct InputInterpreterState {
pub focused_node: Option<DomNodeId>,
pub click_count: u8,
pub drag_start_position: Option<LogicalPosition>,
pub has_selection: bool,
pub focus_is_editable: bool,
}Expand description
Flattened focus/selection state for the input interpreter (replaces trait objects).
Fields§
§focused_node: Option<DomNodeId>§click_count: u8§drag_start_position: Option<LogicalPosition>§has_selection: bool§focus_is_editable: boolWhether focus sits in a TEXT-EDITING context (a contenteditable host, a text input) - the only place arrow keys mean “move the caret”.
Without this the interpreter claimed every arrow key for a caret op
and returned AddAndSkip, which SWALLOWS the event: it never reached
user callbacks at all. A focused Slider or colour picker therefore
could not implement arrow keys - the handler was never called (device
report, 2026-09-01: “the arrow keys for sliders do not work at all,
nor the four arrow keys for navigating the color gradient”).
Trait Implementations§
Source§impl Clone for InputInterpreterState
impl Clone for InputInterpreterState
Source§fn clone(&self) -> InputInterpreterState
fn clone(&self) -> InputInterpreterState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for InputInterpreterState
Auto Trait Implementations§
impl Freeze for InputInterpreterState
impl RefUnwindSafe for InputInterpreterState
impl Send for InputInterpreterState
impl Sync for InputInterpreterState
impl Unpin for InputInterpreterState
impl UnsafeUnpin for InputInterpreterState
impl UnwindSafe for InputInterpreterState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more