[−][src]Struct web_sys::KeyEvent
The KeyEvent
object
This API requires the following crate features to be activated: KeyEvent
Methods
impl KeyEvent
[src]
pub fn init_key_event(&self, type_: &str)
[src]
The initKeyEvent()
method
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
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]
&self,
type_: &str,
can_bubble: bool,
cancelable: bool
)
The initKeyEvent()
method
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]
&self,
type_: &str,
can_bubble: bool,
cancelable: bool,
view: Option<&Window>
)
The initKeyEvent()
method
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]
&self,
type_: &str,
can_bubble: bool,
cancelable: bool,
view: Option<&Window>,
ctrl_key: bool
)
The initKeyEvent()
method
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]
&self,
type_: &str,
can_bubble: bool,
cancelable: bool,
view: Option<&Window>,
ctrl_key: bool,
alt_key: bool
)
The initKeyEvent()
method
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]
&self,
type_: &str,
can_bubble: bool,
cancelable: bool,
view: Option<&Window>,
ctrl_key: bool,
alt_key: bool,
shift_key: bool
)
The initKeyEvent()
method
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]
&self,
type_: &str,
can_bubble: bool,
cancelable: bool,
view: Option<&Window>,
ctrl_key: bool,
alt_key: bool,
shift_key: bool,
meta_key: bool
)
The initKeyEvent()
method
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]
&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
)
The initKeyEvent()
method
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]
&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
)
The initKeyEvent()
method
This API requires the following crate features to be activated: KeyEvent
, Window
impl KeyEvent
[src]
pub const DOM_VK_CANCEL: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_HELP: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_BACK_SPACE: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_TAB: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_CLEAR: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_RETURN: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_SHIFT: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_CONTROL: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_ALT: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_PAUSE: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_CAPS_LOCK: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_KANA: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_HANGUL: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_EISU: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_JUNJA: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_FINAL: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_HANJA: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_KANJI: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_ESCAPE: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_CONVERT: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_NONCONVERT: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_ACCEPT: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_MODECHANGE: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_SPACE: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_PAGE_UP: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_PAGE_DOWN: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_END: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_HOME: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_LEFT: u32
[src]
impl KeyEvent
[src]
impl KeyEvent
[src]
pub const DOM_VK_RIGHT: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_DOWN: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_SELECT: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_PRINT: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_EXECUTE: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_PRINTSCREEN: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_INSERT: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_DELETE: u32
[src]
impl KeyEvent
[src]
impl KeyEvent
[src]
impl KeyEvent
[src]
impl KeyEvent
[src]
impl KeyEvent
[src]
impl KeyEvent
[src]
impl KeyEvent
[src]
impl KeyEvent
[src]
impl KeyEvent
[src]
impl KeyEvent
[src]
impl KeyEvent
[src]
pub const DOM_VK_COLON: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_SEMICOLON: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_LESS_THAN: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_EQUALS: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_GREATER_THAN: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_QUESTION_MARK: u32
[src]
impl KeyEvent
[src]
impl KeyEvent
[src]
impl KeyEvent
[src]
impl KeyEvent
[src]
impl KeyEvent
[src]
impl KeyEvent
[src]
impl KeyEvent
[src]
impl KeyEvent
[src]
impl KeyEvent
[src]
impl KeyEvent
[src]
impl KeyEvent
[src]
impl KeyEvent
[src]
impl KeyEvent
[src]
impl KeyEvent
[src]
impl KeyEvent
[src]
impl KeyEvent
[src]
impl KeyEvent
[src]
impl KeyEvent
[src]
impl KeyEvent
[src]
impl KeyEvent
[src]
impl KeyEvent
[src]
impl KeyEvent
[src]
impl KeyEvent
[src]
impl KeyEvent
[src]
impl KeyEvent
[src]
impl KeyEvent
[src]
impl KeyEvent
[src]
impl KeyEvent
[src]
pub const DOM_VK_WIN: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_CONTEXT_MENU: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_SLEEP: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_NUMPAD0: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_NUMPAD1: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_NUMPAD2: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_NUMPAD3: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_NUMPAD4: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_NUMPAD5: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_NUMPAD6: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_NUMPAD7: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_NUMPAD8: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_NUMPAD9: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_MULTIPLY: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_ADD: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_SEPARATOR: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_SUBTRACT: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_DECIMAL: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_DIVIDE: u32
[src]
impl KeyEvent
[src]
impl KeyEvent
[src]
impl KeyEvent
[src]
impl KeyEvent
[src]
impl KeyEvent
[src]
impl KeyEvent
[src]
impl KeyEvent
[src]
impl KeyEvent
[src]
impl KeyEvent
[src]
impl KeyEvent
[src]
pub const DOM_VK_F10: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_F11: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_F12: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_F13: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_F14: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_F15: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_F16: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_F17: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_F18: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_F19: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_F20: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_F21: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_F22: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_F23: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_F24: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_NUM_LOCK: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_SCROLL_LOCK: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_WIN_OEM_FJ_JISHO: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_WIN_OEM_FJ_MASSHOU: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_WIN_OEM_FJ_TOUROKU: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_WIN_OEM_FJ_LOYA: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_WIN_OEM_FJ_ROYA: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_CIRCUMFLEX: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_EXCLAMATION: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_DOUBLE_QUOTE: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_HASH: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_DOLLAR: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_PERCENT: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_AMPERSAND: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_UNDERSCORE: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_OPEN_PAREN: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_CLOSE_PAREN: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_ASTERISK: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_PLUS: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_PIPE: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_HYPHEN_MINUS: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_OPEN_CURLY_BRACKET: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_CLOSE_CURLY_BRACKET: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_TILDE: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_VOLUME_MUTE: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_VOLUME_DOWN: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_VOLUME_UP: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_COMMA: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_PERIOD: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_SLASH: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_BACK_QUOTE: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_OPEN_BRACKET: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_BACK_SLASH: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_CLOSE_BRACKET: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_QUOTE: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_META: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_ALTGR: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_WIN_ICO_HELP: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_WIN_ICO_00: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_PROCESSKEY: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_WIN_ICO_CLEAR: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_WIN_OEM_RESET: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_WIN_OEM_JUMP: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_WIN_OEM_PA1: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_WIN_OEM_PA2: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_WIN_OEM_PA3: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_WIN_OEM_WSCTRL: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_WIN_OEM_CUSEL: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_WIN_OEM_ATTN: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_WIN_OEM_FINISH: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_WIN_OEM_COPY: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_WIN_OEM_AUTO: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_WIN_OEM_ENLW: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_WIN_OEM_BACKTAB: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_ATTN: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_CRSEL: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_EXSEL: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_EREOF: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_PLAY: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_ZOOM: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_PA1: u32
[src]
impl KeyEvent
[src]
pub const DOM_VK_WIN_OEM_CLEAR: u32
[src]
Trait Implementations
impl Clone for KeyEvent
[src]
fn clone(&self) -> KeyEvent
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl From<JsValue> for KeyEvent
[src]
impl From<KeyEvent> for JsValue
[src]
impl From<KeyEvent> for Object
[src]
impl AsRef<JsValue> for KeyEvent
[src]
impl AsRef<Object> for KeyEvent
[src]
impl Deref for KeyEvent
[src]
impl Debug for KeyEvent
[src]
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, extra: &mut dyn Stack) -> Self
[src]
impl WasmDescribe for KeyEvent
[src]
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, extra: &mut dyn Stack) -> Self::Abi
[src]
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, extra: &mut dyn Stack) -> Self::Abi
[src]
impl OptionFromWasmAbi for KeyEvent
[src]
impl OptionIntoWasmAbi for KeyEvent
[src]
impl<'a> OptionIntoWasmAbi for &'a KeyEvent
[src]
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, extra: &mut dyn Stack) -> Self::Anchor
[src]
impl JsCast for KeyEvent
[src]
fn instanceof(val: &JsValue) -> bool
[src]
fn unchecked_from_js(val: JsValue) -> Self
[src]
fn unchecked_from_js_ref(val: &JsValue) -> &Self
[src]
fn is_instance_of<T>(&self) -> bool where
T: JsCast,
[src]
T: JsCast,
Test whether this JS value is an instance of the type T
. Read more
fn dyn_into<T>(self) -> Result<T, Self> where
T: JsCast,
[src]
T: JsCast,
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]
T: JsCast,
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]
T: JsCast,
Performs a zero-cost unchecked cast into the specified type. Read more
fn unchecked_ref<T>(&self) -> &T where
T: JsCast,
[src]
T: JsCast,
Performs a zero-cost unchecked cast into a reference to the specified type. Read more
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> ReturnWasmAbi for T where
T: IntoWasmAbi,
[src]
T: IntoWasmAbi,
type Abi = <T as IntoWasmAbi>::Abi
Same as IntoWasmAbi::Abi