Struct web_sys::KeyEvent[][src]

#[repr(transparent)]
pub struct KeyEvent { /* fields omitted */ }

The KeyEvent class.

MDN Documentation

This API requires the following crate features to be activated: KeyEvent

Implementations

impl KeyEvent[src]

pub fn init_key_event(&self, type_: &str)[src]

The initKeyEvent() method.

MDN Documentation

This API requires the following crate features to be activated: KeyEvent

impl KeyEvent[src]

pub fn init_key_event_with_can_bubble(&self, type_: &str, can_bubble: bool)[src]

The initKeyEvent() method.

MDN Documentation

This API requires the following crate features to be activated: KeyEvent

impl KeyEvent[src]

pub fn init_key_event_with_can_bubble_and_cancelable(
    &self,
    type_: &str,
    can_bubble: bool,
    cancelable: bool
)
[src]

The initKeyEvent() method.

MDN Documentation

This API requires the following crate features to be activated: KeyEvent

impl KeyEvent[src]

pub fn init_key_event_with_can_bubble_and_cancelable_and_view(
    &self,
    type_: &str,
    can_bubble: bool,
    cancelable: bool,
    view: Option<&Window>
)
[src]

The initKeyEvent() method.

MDN Documentation

This API requires the following crate features to be activated: KeyEvent, Window

impl KeyEvent[src]

pub fn init_key_event_with_can_bubble_and_cancelable_and_view_and_ctrl_key(
    &self,
    type_: &str,
    can_bubble: bool,
    cancelable: bool,
    view: Option<&Window>,
    ctrl_key: bool
)
[src]

The initKeyEvent() method.

MDN Documentation

This API requires the following crate features to be activated: KeyEvent, Window

impl KeyEvent[src]

pub fn init_key_event_with_can_bubble_and_cancelable_and_view_and_ctrl_key_and_alt_key(
    &self,
    type_: &str,
    can_bubble: bool,
    cancelable: bool,
    view: Option<&Window>,
    ctrl_key: bool,
    alt_key: bool
)
[src]

The initKeyEvent() method.

MDN Documentation

This API requires the following crate features to be activated: KeyEvent, Window

impl KeyEvent[src]

pub fn init_key_event_with_can_bubble_and_cancelable_and_view_and_ctrl_key_and_alt_key_and_shift_key(
    &self,
    type_: &str,
    can_bubble: bool,
    cancelable: bool,
    view: Option<&Window>,
    ctrl_key: bool,
    alt_key: bool,
    shift_key: bool
)
[src]

The initKeyEvent() method.

MDN Documentation

This API requires the following crate features to be activated: KeyEvent, Window

impl KeyEvent[src]

pub fn init_key_event_with_can_bubble_and_cancelable_and_view_and_ctrl_key_and_alt_key_and_shift_key_and_meta_key(
    &self,
    type_: &str,
    can_bubble: bool,
    cancelable: bool,
    view: Option<&Window>,
    ctrl_key: bool,
    alt_key: bool,
    shift_key: bool,
    meta_key: bool
)
[src]

The initKeyEvent() method.

MDN Documentation

This API requires the following crate features to be activated: KeyEvent, Window

impl KeyEvent[src]

pub fn init_key_event_with_can_bubble_and_cancelable_and_view_and_ctrl_key_and_alt_key_and_shift_key_and_meta_key_and_key_code(
    &self,
    type_: &str,
    can_bubble: bool,
    cancelable: bool,
    view: Option<&Window>,
    ctrl_key: bool,
    alt_key: bool,
    shift_key: bool,
    meta_key: bool,
    key_code: u32
)
[src]

The initKeyEvent() method.

MDN Documentation

This API requires the following crate features to be activated: KeyEvent, Window

impl KeyEvent[src]

pub fn init_key_event_with_can_bubble_and_cancelable_and_view_and_ctrl_key_and_alt_key_and_shift_key_and_meta_key_and_key_code_and_char_code(
    &self,
    type_: &str,
    can_bubble: bool,
    cancelable: bool,
    view: Option<&Window>,
    ctrl_key: bool,
    alt_key: bool,
    shift_key: bool,
    meta_key: bool,
    key_code: u32,
    char_code: u32
)
[src]

The initKeyEvent() method.

MDN Documentation

This API requires the following crate features to be activated: KeyEvent, Window

impl KeyEvent[src]

pub const DOM_VK_CANCEL: u32[src]

The KeyEvent.DOM_VK_CANCEL const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_HELP: u32[src]

The KeyEvent.DOM_VK_HELP const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_BACK_SPACE: u32[src]

The KeyEvent.DOM_VK_BACK_SPACE const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_TAB: u32[src]

The KeyEvent.DOM_VK_TAB const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_CLEAR: u32[src]

The KeyEvent.DOM_VK_CLEAR const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_RETURN: u32[src]

The KeyEvent.DOM_VK_RETURN const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_SHIFT: u32[src]

The KeyEvent.DOM_VK_SHIFT const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_CONTROL: u32[src]

The KeyEvent.DOM_VK_CONTROL const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_ALT: u32[src]

The KeyEvent.DOM_VK_ALT const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_PAUSE: u32[src]

The KeyEvent.DOM_VK_PAUSE const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_CAPS_LOCK: u32[src]

The KeyEvent.DOM_VK_CAPS_LOCK const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_KANA: u32[src]

The KeyEvent.DOM_VK_KANA const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_HANGUL: u32[src]

The KeyEvent.DOM_VK_HANGUL const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_EISU: u32[src]

The KeyEvent.DOM_VK_EISU const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_JUNJA: u32[src]

The KeyEvent.DOM_VK_JUNJA const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_FINAL: u32[src]

The KeyEvent.DOM_VK_FINAL const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_HANJA: u32[src]

The KeyEvent.DOM_VK_HANJA const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_KANJI: u32[src]

The KeyEvent.DOM_VK_KANJI const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_ESCAPE: u32[src]

The KeyEvent.DOM_VK_ESCAPE const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_CONVERT: u32[src]

The KeyEvent.DOM_VK_CONVERT const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_NONCONVERT: u32[src]

The KeyEvent.DOM_VK_NONCONVERT const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_ACCEPT: u32[src]

The KeyEvent.DOM_VK_ACCEPT const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_MODECHANGE: u32[src]

The KeyEvent.DOM_VK_MODECHANGE const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_SPACE: u32[src]

The KeyEvent.DOM_VK_SPACE const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_PAGE_UP: u32[src]

The KeyEvent.DOM_VK_PAGE_UP const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_PAGE_DOWN: u32[src]

The KeyEvent.DOM_VK_PAGE_DOWN const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_END: u32[src]

The KeyEvent.DOM_VK_END const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_HOME: u32[src]

The KeyEvent.DOM_VK_HOME const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_LEFT: u32[src]

The KeyEvent.DOM_VK_LEFT const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_UP: u32[src]

The KeyEvent.DOM_VK_UP const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_RIGHT: u32[src]

The KeyEvent.DOM_VK_RIGHT const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_DOWN: u32[src]

The KeyEvent.DOM_VK_DOWN const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_SELECT: u32[src]

The KeyEvent.DOM_VK_SELECT const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_PRINT: u32[src]

The KeyEvent.DOM_VK_PRINT const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_EXECUTE: u32[src]

The KeyEvent.DOM_VK_EXECUTE const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_PRINTSCREEN: u32[src]

The KeyEvent.DOM_VK_PRINTSCREEN const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_INSERT: u32[src]

The KeyEvent.DOM_VK_INSERT const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_DELETE: u32[src]

The KeyEvent.DOM_VK_DELETE const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_0: u32[src]

The KeyEvent.DOM_VK_0 const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_1: u32[src]

The KeyEvent.DOM_VK_1 const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_2: u32[src]

The KeyEvent.DOM_VK_2 const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_3: u32[src]

The KeyEvent.DOM_VK_3 const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_4: u32[src]

The KeyEvent.DOM_VK_4 const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_5: u32[src]

The KeyEvent.DOM_VK_5 const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_6: u32[src]

The KeyEvent.DOM_VK_6 const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_7: u32[src]

The KeyEvent.DOM_VK_7 const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_8: u32[src]

The KeyEvent.DOM_VK_8 const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_9: u32[src]

The KeyEvent.DOM_VK_9 const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_COLON: u32[src]

The KeyEvent.DOM_VK_COLON const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_SEMICOLON: u32[src]

The KeyEvent.DOM_VK_SEMICOLON const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_LESS_THAN: u32[src]

The KeyEvent.DOM_VK_LESS_THAN const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_EQUALS: u32[src]

The KeyEvent.DOM_VK_EQUALS const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_GREATER_THAN: u32[src]

The KeyEvent.DOM_VK_GREATER_THAN const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_QUESTION_MARK: u32[src]

The KeyEvent.DOM_VK_QUESTION_MARK const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_AT: u32[src]

The KeyEvent.DOM_VK_AT const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_A: u32[src]

The KeyEvent.DOM_VK_A const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_B: u32[src]

The KeyEvent.DOM_VK_B const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_C: u32[src]

The KeyEvent.DOM_VK_C const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_D: u32[src]

The KeyEvent.DOM_VK_D const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_E: u32[src]

The KeyEvent.DOM_VK_E const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_F: u32[src]

The KeyEvent.DOM_VK_F const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_G: u32[src]

The KeyEvent.DOM_VK_G const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_H: u32[src]

The KeyEvent.DOM_VK_H const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_I: u32[src]

The KeyEvent.DOM_VK_I const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_J: u32[src]

The KeyEvent.DOM_VK_J const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_K: u32[src]

The KeyEvent.DOM_VK_K const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_L: u32[src]

The KeyEvent.DOM_VK_L const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_M: u32[src]

The KeyEvent.DOM_VK_M const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_N: u32[src]

The KeyEvent.DOM_VK_N const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_O: u32[src]

The KeyEvent.DOM_VK_O const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_P: u32[src]

The KeyEvent.DOM_VK_P const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_Q: u32[src]

The KeyEvent.DOM_VK_Q const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_R: u32[src]

The KeyEvent.DOM_VK_R const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_S: u32[src]

The KeyEvent.DOM_VK_S const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_T: u32[src]

The KeyEvent.DOM_VK_T const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_U: u32[src]

The KeyEvent.DOM_VK_U const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_V: u32[src]

The KeyEvent.DOM_VK_V const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_W: u32[src]

The KeyEvent.DOM_VK_W const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_X: u32[src]

The KeyEvent.DOM_VK_X const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_Y: u32[src]

The KeyEvent.DOM_VK_Y const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_Z: u32[src]

The KeyEvent.DOM_VK_Z const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_WIN: u32[src]

The KeyEvent.DOM_VK_WIN const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_CONTEXT_MENU: u32[src]

The KeyEvent.DOM_VK_CONTEXT_MENU const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_SLEEP: u32[src]

The KeyEvent.DOM_VK_SLEEP const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_NUMPAD0: u32[src]

The KeyEvent.DOM_VK_NUMPAD0 const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_NUMPAD1: u32[src]

The KeyEvent.DOM_VK_NUMPAD1 const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_NUMPAD2: u32[src]

The KeyEvent.DOM_VK_NUMPAD2 const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_NUMPAD3: u32[src]

The KeyEvent.DOM_VK_NUMPAD3 const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_NUMPAD4: u32[src]

The KeyEvent.DOM_VK_NUMPAD4 const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_NUMPAD5: u32[src]

The KeyEvent.DOM_VK_NUMPAD5 const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_NUMPAD6: u32[src]

The KeyEvent.DOM_VK_NUMPAD6 const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_NUMPAD7: u32[src]

The KeyEvent.DOM_VK_NUMPAD7 const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_NUMPAD8: u32[src]

The KeyEvent.DOM_VK_NUMPAD8 const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_NUMPAD9: u32[src]

The KeyEvent.DOM_VK_NUMPAD9 const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_MULTIPLY: u32[src]

The KeyEvent.DOM_VK_MULTIPLY const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_ADD: u32[src]

The KeyEvent.DOM_VK_ADD const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_SEPARATOR: u32[src]

The KeyEvent.DOM_VK_SEPARATOR const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_SUBTRACT: u32[src]

The KeyEvent.DOM_VK_SUBTRACT const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_DECIMAL: u32[src]

The KeyEvent.DOM_VK_DECIMAL const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_DIVIDE: u32[src]

The KeyEvent.DOM_VK_DIVIDE const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_F1: u32[src]

The KeyEvent.DOM_VK_F1 const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_F2: u32[src]

The KeyEvent.DOM_VK_F2 const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_F3: u32[src]

The KeyEvent.DOM_VK_F3 const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_F4: u32[src]

The KeyEvent.DOM_VK_F4 const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_F5: u32[src]

The KeyEvent.DOM_VK_F5 const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_F6: u32[src]

The KeyEvent.DOM_VK_F6 const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_F7: u32[src]

The KeyEvent.DOM_VK_F7 const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_F8: u32[src]

The KeyEvent.DOM_VK_F8 const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_F9: u32[src]

The KeyEvent.DOM_VK_F9 const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_F10: u32[src]

The KeyEvent.DOM_VK_F10 const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_F11: u32[src]

The KeyEvent.DOM_VK_F11 const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_F12: u32[src]

The KeyEvent.DOM_VK_F12 const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_F13: u32[src]

The KeyEvent.DOM_VK_F13 const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_F14: u32[src]

The KeyEvent.DOM_VK_F14 const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_F15: u32[src]

The KeyEvent.DOM_VK_F15 const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_F16: u32[src]

The KeyEvent.DOM_VK_F16 const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_F17: u32[src]

The KeyEvent.DOM_VK_F17 const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_F18: u32[src]

The KeyEvent.DOM_VK_F18 const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_F19: u32[src]

The KeyEvent.DOM_VK_F19 const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_F20: u32[src]

The KeyEvent.DOM_VK_F20 const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_F21: u32[src]

The KeyEvent.DOM_VK_F21 const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_F22: u32[src]

The KeyEvent.DOM_VK_F22 const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_F23: u32[src]

The KeyEvent.DOM_VK_F23 const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_F24: u32[src]

The KeyEvent.DOM_VK_F24 const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_NUM_LOCK: u32[src]

The KeyEvent.DOM_VK_NUM_LOCK const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_SCROLL_LOCK: u32[src]

The KeyEvent.DOM_VK_SCROLL_LOCK const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_WIN_OEM_FJ_JISHO: u32[src]

The KeyEvent.DOM_VK_WIN_OEM_FJ_JISHO const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_WIN_OEM_FJ_MASSHOU: u32[src]

The KeyEvent.DOM_VK_WIN_OEM_FJ_MASSHOU const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_WIN_OEM_FJ_TOUROKU: u32[src]

The KeyEvent.DOM_VK_WIN_OEM_FJ_TOUROKU const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_WIN_OEM_FJ_LOYA: u32[src]

The KeyEvent.DOM_VK_WIN_OEM_FJ_LOYA const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_WIN_OEM_FJ_ROYA: u32[src]

The KeyEvent.DOM_VK_WIN_OEM_FJ_ROYA const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_CIRCUMFLEX: u32[src]

The KeyEvent.DOM_VK_CIRCUMFLEX const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_EXCLAMATION: u32[src]

The KeyEvent.DOM_VK_EXCLAMATION const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_DOUBLE_QUOTE: u32[src]

The KeyEvent.DOM_VK_DOUBLE_QUOTE const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_HASH: u32[src]

The KeyEvent.DOM_VK_HASH const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_DOLLAR: u32[src]

The KeyEvent.DOM_VK_DOLLAR const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_PERCENT: u32[src]

The KeyEvent.DOM_VK_PERCENT const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_AMPERSAND: u32[src]

The KeyEvent.DOM_VK_AMPERSAND const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_UNDERSCORE: u32[src]

The KeyEvent.DOM_VK_UNDERSCORE const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_OPEN_PAREN: u32[src]

The KeyEvent.DOM_VK_OPEN_PAREN const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_CLOSE_PAREN: u32[src]

The KeyEvent.DOM_VK_CLOSE_PAREN const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_ASTERISK: u32[src]

The KeyEvent.DOM_VK_ASTERISK const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_PLUS: u32[src]

The KeyEvent.DOM_VK_PLUS const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_PIPE: u32[src]

The KeyEvent.DOM_VK_PIPE const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_HYPHEN_MINUS: u32[src]

The KeyEvent.DOM_VK_HYPHEN_MINUS const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_OPEN_CURLY_BRACKET: u32[src]

The KeyEvent.DOM_VK_OPEN_CURLY_BRACKET const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_CLOSE_CURLY_BRACKET: u32[src]

The KeyEvent.DOM_VK_CLOSE_CURLY_BRACKET const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_TILDE: u32[src]

The KeyEvent.DOM_VK_TILDE const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_VOLUME_MUTE: u32[src]

The KeyEvent.DOM_VK_VOLUME_MUTE const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_VOLUME_DOWN: u32[src]

The KeyEvent.DOM_VK_VOLUME_DOWN const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_VOLUME_UP: u32[src]

The KeyEvent.DOM_VK_VOLUME_UP const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_COMMA: u32[src]

The KeyEvent.DOM_VK_COMMA const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_PERIOD: u32[src]

The KeyEvent.DOM_VK_PERIOD const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_SLASH: u32[src]

The KeyEvent.DOM_VK_SLASH const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_BACK_QUOTE: u32[src]

The KeyEvent.DOM_VK_BACK_QUOTE const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_OPEN_BRACKET: u32[src]

The KeyEvent.DOM_VK_OPEN_BRACKET const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_BACK_SLASH: u32[src]

The KeyEvent.DOM_VK_BACK_SLASH const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_CLOSE_BRACKET: u32[src]

The KeyEvent.DOM_VK_CLOSE_BRACKET const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_QUOTE: u32[src]

The KeyEvent.DOM_VK_QUOTE const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_META: u32[src]

The KeyEvent.DOM_VK_META const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_ALTGR: u32[src]

The KeyEvent.DOM_VK_ALTGR const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_WIN_ICO_HELP: u32[src]

The KeyEvent.DOM_VK_WIN_ICO_HELP const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_WIN_ICO_00: u32[src]

The KeyEvent.DOM_VK_WIN_ICO_00 const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_PROCESSKEY: u32[src]

The KeyEvent.DOM_VK_PROCESSKEY const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_WIN_ICO_CLEAR: u32[src]

The KeyEvent.DOM_VK_WIN_ICO_CLEAR const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_WIN_OEM_RESET: u32[src]

The KeyEvent.DOM_VK_WIN_OEM_RESET const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_WIN_OEM_JUMP: u32[src]

The KeyEvent.DOM_VK_WIN_OEM_JUMP const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_WIN_OEM_PA1: u32[src]

The KeyEvent.DOM_VK_WIN_OEM_PA1 const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_WIN_OEM_PA2: u32[src]

The KeyEvent.DOM_VK_WIN_OEM_PA2 const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_WIN_OEM_PA3: u32[src]

The KeyEvent.DOM_VK_WIN_OEM_PA3 const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_WIN_OEM_WSCTRL: u32[src]

The KeyEvent.DOM_VK_WIN_OEM_WSCTRL const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_WIN_OEM_CUSEL: u32[src]

The KeyEvent.DOM_VK_WIN_OEM_CUSEL const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_WIN_OEM_ATTN: u32[src]

The KeyEvent.DOM_VK_WIN_OEM_ATTN const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_WIN_OEM_FINISH: u32[src]

The KeyEvent.DOM_VK_WIN_OEM_FINISH const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_WIN_OEM_COPY: u32[src]

The KeyEvent.DOM_VK_WIN_OEM_COPY const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_WIN_OEM_AUTO: u32[src]

The KeyEvent.DOM_VK_WIN_OEM_AUTO const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_WIN_OEM_ENLW: u32[src]

The KeyEvent.DOM_VK_WIN_OEM_ENLW const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_WIN_OEM_BACKTAB: u32[src]

The KeyEvent.DOM_VK_WIN_OEM_BACKTAB const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_ATTN: u32[src]

The KeyEvent.DOM_VK_ATTN const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_CRSEL: u32[src]

The KeyEvent.DOM_VK_CRSEL const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_EXSEL: u32[src]

The KeyEvent.DOM_VK_EXSEL const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_EREOF: u32[src]

The KeyEvent.DOM_VK_EREOF const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_PLAY: u32[src]

The KeyEvent.DOM_VK_PLAY const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_ZOOM: u32[src]

The KeyEvent.DOM_VK_ZOOM const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_PA1: u32[src]

The KeyEvent.DOM_VK_PA1 const.

This API requires the following crate features to be activated: KeyEvent

pub const DOM_VK_WIN_OEM_CLEAR: u32[src]

The KeyEvent.DOM_VK_WIN_OEM_CLEAR const.

This API requires the following crate features to be activated: KeyEvent

Methods from Deref<Target = Object>

pub fn constructor(&self) -> Function[src]

The constructor property returns a reference to the Object constructor function that created the instance object.

MDN documentation

pub fn has_own_property(&self, property: &JsValue) -> bool[src]

The hasOwnProperty() method returns a boolean indicating whether the object has the specified property as its own property (as opposed to inheriting it).

MDN documentation

pub fn is_prototype_of(&self, value: &JsValue) -> bool[src]

The isPrototypeOf() method checks if an object exists in another object’s prototype chain.

MDN documentation

pub fn property_is_enumerable(&self, property: &JsValue) -> bool[src]

The propertyIsEnumerable() method returns a Boolean indicating whether the specified property is enumerable.

MDN documentation

pub fn to_locale_string(&self) -> JsString[src]

The toLocaleString() method returns a string representing the object. This method is meant to be overridden by derived objects for locale-specific purposes.

MDN documentation

pub fn to_string(&self) -> JsString[src]

The toString() method returns a string representing the object.

MDN documentation

pub fn value_of(&self) -> Object[src]

The valueOf() method returns the primitive value of the specified object.

MDN documentation

Methods from Deref<Target = JsValue>

pub const NULL: JsValue[src]

pub const UNDEFINED: JsValue[src]

pub const TRUE: JsValue[src]

pub const FALSE: JsValue[src]

pub fn as_f64(&self) -> Option<f64>[src]

Returns the f64 value of this JS value if it’s an instance of a number.

If this JS value is not an instance of a number then this returns None.

pub fn is_string(&self) -> bool[src]

Tests whether this JS value is a JS string.

pub fn as_string(&self) -> Option<String>[src]

If this JS value is a string value, this function copies the JS string value into wasm linear memory, encoded as UTF-8, and returns it as a Rust String.

To avoid the copying and re-encoding, consider the JsString::try_from() function from js-sys instead.

If this JS value is not an instance of a string or if it’s not valid utf-8 then this returns None.

UTF-16 vs UTF-8

JavaScript strings in general are encoded as UTF-16, but Rust strings are encoded as UTF-8. This can cause the Rust string to look a bit different than the JS string sometimes. For more details see the documentation about the str type which contains a few caveats about the encodings.

pub fn as_bool(&self) -> Option<bool>[src]

Returns the bool value of this JS value if it’s an instance of a boolean.

If this JS value is not an instance of a boolean then this returns None.

pub fn is_null(&self) -> bool[src]

Tests whether this JS value is null

pub fn is_undefined(&self) -> bool[src]

Tests whether this JS value is undefined

pub fn is_symbol(&self) -> bool[src]

Tests whether the type of this JS value is symbol

pub fn is_object(&self) -> bool[src]

Tests whether typeof self == "object" && self !== null.

pub fn is_function(&self) -> bool[src]

Tests whether the type of this JS value is function.

pub fn is_truthy(&self) -> bool[src]

Tests whether the value is “truthy”.

pub fn is_falsy(&self) -> bool[src]

Tests whether the value is “falsy”.

Trait Implementations

impl AsRef<JsValue> for KeyEvent[src]

fn as_ref(&self) -> &JsValue[src]

Performs the conversion.

impl AsRef<KeyEvent> for KeyEvent[src]

fn as_ref(&self) -> &KeyEvent[src]

Performs the conversion.

impl AsRef<Object> for KeyEvent[src]

fn as_ref(&self) -> &Object[src]

Performs the conversion.

impl Clone for KeyEvent[src]

fn clone(&self) -> KeyEvent[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for KeyEvent[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl Deref for KeyEvent[src]

type Target = Object

The resulting type after dereferencing.

fn deref(&self) -> &Object[src]

Dereferences the value.

impl From<JsValue> for KeyEvent[src]

fn from(obj: JsValue) -> KeyEvent[src]

Performs the conversion.

impl From<KeyEvent> for JsValue[src]

fn from(obj: KeyEvent) -> JsValue[src]

Performs the conversion.

impl From<KeyEvent> for Object[src]

fn from(obj: KeyEvent) -> Object[src]

Performs the conversion.

impl FromWasmAbi for KeyEvent[src]

type Abi = <JsValue as FromWasmAbi>::Abi

The wasm ABI type that this converts from when coming back out from the ABI boundary. Read more

unsafe fn from_abi(js: Self::Abi) -> Self[src]

Recover a Self from Self::Abi. Read more

impl IntoWasmAbi for KeyEvent[src]

type Abi = <JsValue as IntoWasmAbi>::Abi

The wasm ABI type that this converts into when crossing the ABI boundary. Read more

fn into_abi(self) -> Self::Abi[src]

Convert self into Self::Abi so that it can be sent across the wasm ABI boundary. Read more

impl<'a> IntoWasmAbi for &'a KeyEvent[src]

type Abi = <&'a JsValue as IntoWasmAbi>::Abi

The wasm ABI type that this converts into when crossing the ABI boundary. Read more

fn into_abi(self) -> Self::Abi[src]

Convert self into Self::Abi so that it can be sent across the wasm ABI boundary. Read more

impl JsCast for KeyEvent[src]

fn instanceof(val: &JsValue) -> bool[src]

Performs a dynamic instanceof check to see whether the JsValue provided is an instance of this type. Read more

fn unchecked_from_js(val: JsValue) -> Self[src]

Performs a zero-cost unchecked conversion from a JsValue into an instance of Self Read more

fn unchecked_from_js_ref(val: &JsValue) -> &Self[src]

Performs a zero-cost unchecked conversion from a &JsValue into an instance of &Self. Read more

fn has_type<T>(&self) -> bool where
    T: JsCast
[src]

Test whether this JS value has a type T. Read more

fn dyn_into<T>(self) -> Result<T, Self> where
    T: JsCast
[src]

Performs a dynamic cast (checked at runtime) of this value into the target type T. Read more

fn dyn_ref<T>(&self) -> Option<&T> where
    T: JsCast
[src]

Performs a dynamic cast (checked at runtime) of this value into the target type T. Read more

fn unchecked_into<T>(self) -> T where
    T: JsCast
[src]

Performs a zero-cost unchecked cast into the specified type. Read more

fn unchecked_ref<T>(&self) -> &T where
    T: JsCast
[src]

Performs a zero-cost unchecked cast into a reference to the specified type. Read more

fn is_instance_of<T>(&self) -> bool where
    T: JsCast
[src]

Test whether this JS value is an instance of the type T. Read more

fn is_type_of(val: &JsValue) -> bool[src]

Performs a dynamic check to see whether the JsValue provided is a value of this type. Read more

impl OptionFromWasmAbi for KeyEvent[src]

fn is_none(abi: &Self::Abi) -> bool[src]

Tests whether the argument is a “none” instance. If so it will be deserialized as None, and otherwise it will be passed to FromWasmAbi. Read more

impl OptionIntoWasmAbi for KeyEvent[src]

fn none() -> Self::Abi[src]

Returns an ABI instance indicating “none”, which JS will interpret as the None branch of this option. Read more

impl<'a> OptionIntoWasmAbi for &'a KeyEvent[src]

fn none() -> Self::Abi[src]

Returns an ABI instance indicating “none”, which JS will interpret as the None branch of this option. Read more

impl PartialEq<KeyEvent> for KeyEvent[src]

fn eq(&self, other: &KeyEvent) -> bool[src]

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

fn ne(&self, other: &KeyEvent) -> bool[src]

This method tests for !=.

impl RefFromWasmAbi for KeyEvent[src]

type Abi = <JsValue as RefFromWasmAbi>::Abi

The wasm ABI type references to Self are recovered from.

type Anchor = ManuallyDrop<KeyEvent>

The type that holds the reference to Self for the duration of the invocation of the function that has an &Self parameter. This is required to ensure that the lifetimes don’t persist beyond one function call, and so that they remain anonymous. Read more

unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor[src]

Recover a Self::Anchor from Self::Abi. Read more

impl WasmDescribe for KeyEvent[src]

impl Eq for KeyEvent[src]

impl StructuralEq for KeyEvent[src]

impl StructuralPartialEq for KeyEvent[src]

Auto Trait Implementations

impl RefUnwindSafe for KeyEvent

impl !Send for KeyEvent

impl !Sync for KeyEvent

impl Unpin for KeyEvent

impl UnwindSafe for KeyEvent

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> ReturnWasmAbi for T where
    T: IntoWasmAbi
[src]

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi

pub fn return_abi(self) -> <T as ReturnWasmAbi>::Abi[src]

Same as IntoWasmAbi::into_abi, except that it may throw and never return in the case of Err. Read more

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

Creates owned data from borrowed data, usually by cloning. Read more

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.