pub struct KeyPressed {
pub key: Key,
pub modifiers: Modifiers,
pub repeat: bool,
}Expand description
Raw global key-press event. Subscribe directly for global shortcuts, or read FocusedKey for per-entity routing through lumen-input.
Fields§
§key: KeyLogical key.
modifiers: ModifiersModifier state at time of press.
repeat: boolWhether this is an OS-generated key repeat (held key).
Trait Implementations§
Source§impl Clone for KeyPressed
impl Clone for KeyPressed
Source§fn clone(&self) -> KeyPressed
fn clone(&self) -> KeyPressed
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 moreSource§impl Debug for KeyPressed
impl Debug for KeyPressed
impl Message for KeyPressed
Auto Trait Implementations§
impl Freeze for KeyPressed
impl RefUnwindSafe for KeyPressed
impl Send for KeyPressed
impl Sync for KeyPressed
impl Unpin for KeyPressed
impl UnsafeUnpin for KeyPressed
impl UnwindSafe for KeyPressed
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.