pub struct KeyboardEvent {
pub key: Key,
pub event_type: KeyboardEventType,
pub modifiers: Modifiers,
}Expand description
事件处理相关功能 键盘事件
Fields§
§key: Key按键
event_type: KeyboardEventType事件类型
modifiers: Modifiers是否按下修饰键
Trait Implementations§
Source§impl Debug for KeyboardEvent
impl Debug for KeyboardEvent
Source§impl<'de> Deserialize<'de> for KeyboardEvent
impl<'de> Deserialize<'de> for KeyboardEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for KeyboardEvent
impl RefUnwindSafe for KeyboardEvent
impl Send for KeyboardEvent
impl Sync for KeyboardEvent
impl Unpin for KeyboardEvent
impl UnsafeUnpin for KeyboardEvent
impl UnwindSafe for KeyboardEvent
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