[][src]Trait pc_keyboard::KeyboardLayout

pub trait KeyboardLayout {
    fn map_keycode(
        keycode: KeyCode,
        modifiers: &Modifiers,
        handle_ctrl: HandleControl
    ) -> DecodedKey; }

Required methods

fn map_keycode(
    keycode: KeyCode,
    modifiers: &Modifiers,
    handle_ctrl: HandleControl
) -> DecodedKey

Convert a KeyCode enum to a Unicode character, if possible. KeyCode::A maps to Some('a') (or Some('A') if shifted), while KeyCode::AltLeft returns None

Loading content...

Implementors

impl KeyboardLayout for Uk105Key[src]

impl KeyboardLayout for Us104Key[src]

Loading content...