pub struct SelectTriggerKeyState { /* private fields */ }Expand description
Closed-state trigger policy for Radix-style select.
This models two coupled Radix outcomes:
- Trigger open keys open the listbox on key-down (and suppress the ensuing key-up activation).
- While closed, alphanumeric typeahead updates the selected value without opening.
Implementations§
Source§impl SelectTriggerKeyState
impl SelectTriggerKeyState
pub fn take_suppress_next_activate(&mut self) -> bool
pub fn clear_typeahead(&mut self, host: &mut dyn UiActionHost)
pub fn reset_typeahead_buffer(&mut self)
pub fn typeahead_query(&self) -> &str
pub fn push_typeahead_key_and_arm_timer( &mut self, host: &mut dyn UiActionHost, window: AppWindowId, key: KeyCode, ) -> Option<char>
pub fn on_timer(&mut self, token: TimerToken) -> bool
pub fn handle_key_down_when_closed( &mut self, host: &mut dyn UiActionHost, window: AppWindowId, open: &Model<bool>, value: &Model<Option<Arc<str>>>, values: &[Arc<str>], labels: &[Arc<str>], disabled: &[bool], key: KeyCode, modifiers: Modifiers, repeat: bool, ) -> bool
Trait Implementations§
Source§impl Debug for SelectTriggerKeyState
impl Debug for SelectTriggerKeyState
Source§impl Default for SelectTriggerKeyState
impl Default for SelectTriggerKeyState
Source§fn default() -> SelectTriggerKeyState
fn default() -> SelectTriggerKeyState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SelectTriggerKeyState
impl RefUnwindSafe for SelectTriggerKeyState
impl Send for SelectTriggerKeyState
impl Sync for SelectTriggerKeyState
impl Unpin for SelectTriggerKeyState
impl UnsafeUnpin for SelectTriggerKeyState
impl UnwindSafe for SelectTriggerKeyState
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