pub struct KeyDownCx {
pub key: KeyCode,
pub modifiers: Modifiers,
pub repeat: bool,
pub ime_composing: bool,
}Expand description
Key down payload for component-owned key handlers.
Fields§
§key: KeyCode§modifiers: Modifiers§repeat: bool§ime_composing: boolWhether the focused text input is currently in an active IME composition session.
When true, components should generally avoid treating key presses as command/selection
navigation shortcuts (see cmdk’s isComposing guard).
Trait Implementations§
impl Copy for KeyDownCx
impl Eq for KeyDownCx
impl StructuralPartialEq for KeyDownCx
Auto Trait Implementations§
impl Freeze for KeyDownCx
impl RefUnwindSafe for KeyDownCx
impl Send for KeyDownCx
impl Sync for KeyDownCx
impl Unpin for KeyDownCx
impl UnsafeUnpin for KeyDownCx
impl UnwindSafe for KeyDownCx
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