pub enum KeyCode {
Show 19 variants
Enter,
Space,
Escape,
Tab,
BackTab,
LeftArrow,
RightArrow,
UpArrow,
DownArrow,
PageUp,
PageDown,
Backspace,
Delete,
Home,
End,
Char(char),
F3,
F11,
Other,
}Variants§
Enter
Space
Escape
Tab
BackTab
Shift+Tab(winit 侧通过 modifiers 判断)
LeftArrow
RightArrow
UpArrow
DownArrow
PageUp
PageDown
Backspace
Delete
Home
End
Char(char)
可打印字符(winit logical_key 的单字符)
F3
F3 —— 开发期 Inspector Overlay 开关
F11
F11 —— 常用全屏切换键
Other
其他未识别键
Trait Implementations§
impl Copy for KeyCode
impl Eq for KeyCode
impl StructuralPartialEq for KeyCode
Auto Trait Implementations§
impl Freeze for KeyCode
impl RefUnwindSafe for KeyCode
impl Send for KeyCode
impl Sync for KeyCode
impl Unpin for KeyCode
impl UnsafeUnpin for KeyCode
impl UnwindSafe for KeyCode
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