Struct keyboard_types::KeyboardEvent[][src]

pub struct KeyboardEvent {
    pub state: KeyState,
    pub key: Key,
    pub code: Code,
    pub location: Location,
    pub modifiers: Modifiers,
    pub repeat: bool,
    pub is_composing: bool,
}

Keyboard events are issued for all pressed and released keys.

Fields

Whether the key is pressed or released.

Logical key value.

Physical key position.

Location for keys with multiple instances on common keyboards.

Flags for pressed modifier keys.

True if the key is currently auto-repeated.

Events with this flag should be ignored in a text editor and instead composition events should be used.

Trait Implementations

impl Clone for KeyboardEvent
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for KeyboardEvent
[src]

Formats the value using the given formatter. Read more

impl Default for KeyboardEvent
[src]

Returns the "default value" for a type. Read more

impl Eq for KeyboardEvent
[src]

impl PartialEq for KeyboardEvent
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations