Struct orbtk::event::KeyEvent [] [src]

pub struct KeyEvent {
    pub character: Option<char>,
    pub scancode: u8,
}

A key event (such as a pressed key)

Fields

The charecter of the key

The scancode of the key

Methods

impl KeyEvent
[src]

[src]

Trait Implementations

impl Copy for KeyEvent
[src]

impl Clone for KeyEvent
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for KeyEvent
[src]

[src]

Formats the value using the given formatter.