#[repr(transparent)]pub struct KeyEvent { /* private fields */ }
Expand description
The KeyEvent
object
This API requires the following crate features to be activated: KeyEvent
Implementations§
source§impl KeyEvent
impl KeyEvent
sourcepub fn init_key_event(&self, type_: &str)
pub fn init_key_event(&self, type_: &str)
The initKeyEvent()
method
This API requires the following crate features to be activated: KeyEvent
source§impl KeyEvent
impl KeyEvent
sourcepub fn init_key_event_with_can_bubble(&self, type_: &str, can_bubble: bool)
pub fn init_key_event_with_can_bubble(&self, type_: &str, can_bubble: bool)
The initKeyEvent()
method
This API requires the following crate features to be activated: KeyEvent
source§impl KeyEvent
impl KeyEvent
sourcepub fn init_key_event_with_can_bubble_and_cancelable(
&self,
type_: &str,
can_bubble: bool,
cancelable: bool
)
pub fn init_key_event_with_can_bubble_and_cancelable(
&self,
type_: &str,
can_bubble: bool,
cancelable: bool
)
The initKeyEvent()
method
This API requires the following crate features to be activated: KeyEvent
source§impl KeyEvent
impl KeyEvent
source§impl KeyEvent
impl KeyEvent
source§impl KeyEvent
impl KeyEvent
sourcepub 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
)
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
)
The initKeyEvent()
method
This API requires the following crate features to be activated: KeyEvent
, Window
source§impl KeyEvent
impl KeyEvent
sourcepub 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
)
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
)
The initKeyEvent()
method
This API requires the following crate features to be activated: KeyEvent
, Window
source§impl KeyEvent
impl KeyEvent
sourcepub 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
)
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
)
The initKeyEvent()
method
This API requires the following crate features to be activated: KeyEvent
, Window
source§impl KeyEvent
impl KeyEvent
sourcepub 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
)
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
)
The initKeyEvent()
method
This API requires the following crate features to be activated: KeyEvent
, Window
source§impl KeyEvent
impl KeyEvent
sourcepub 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
)
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
)
The initKeyEvent()
method
This API requires the following crate features to be activated: KeyEvent
, Window
Trait Implementations§
source§impl FromWasmAbi for KeyEvent
impl FromWasmAbi for KeyEvent
source§impl<'a> IntoWasmAbi for &'a KeyEvent
impl<'a> IntoWasmAbi for &'a KeyEvent
source§impl IntoWasmAbi for KeyEvent
impl IntoWasmAbi for KeyEvent
source§impl JsCast for KeyEvent
impl JsCast for KeyEvent
source§fn instanceof(val: &JsValue) -> bool
fn instanceof(val: &JsValue) -> bool
instanceof
check to see whether the JsValue
provided is an instance of this type. Read moresource§fn unchecked_from_js(val: JsValue) -> Self
fn unchecked_from_js(val: JsValue) -> Self
source§fn unchecked_from_js_ref(val: &JsValue) -> &Self
fn unchecked_from_js_ref(val: &JsValue) -> &Self
source§fn is_instance_of<T>(&self) -> boolwhere
T: JsCast,
fn is_instance_of<T>(&self) -> boolwhere
T: JsCast,
T
. Read moresource§fn dyn_into<T>(self) -> Result<T, Self>where
T: JsCast,
fn dyn_into<T>(self) -> Result<T, Self>where
T: JsCast,
T
. Read moresource§fn dyn_ref<T>(&self) -> Option<&T>where
T: JsCast,
fn dyn_ref<T>(&self) -> Option<&T>where
T: JsCast,
T
. Read moresource§fn unchecked_into<T>(self) -> Twhere
T: JsCast,
fn unchecked_into<T>(self) -> Twhere
T: JsCast,
source§impl OptionFromWasmAbi for KeyEvent
impl OptionFromWasmAbi for KeyEvent
source§impl<'a> OptionIntoWasmAbi for &'a KeyEvent
impl<'a> OptionIntoWasmAbi for &'a KeyEvent
source§impl OptionIntoWasmAbi for KeyEvent
impl OptionIntoWasmAbi for KeyEvent
source§impl RefFromWasmAbi for KeyEvent
impl RefFromWasmAbi for KeyEvent
§type Abi = <JsValue as RefFromWasmAbi>::Abi
type Abi = <JsValue as RefFromWasmAbi>::Abi
Self
are recovered from.§type Anchor = ManuallyDrop<KeyEvent>
type Anchor = ManuallyDrop<KeyEvent>
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 moreAuto Trait Implementations§
impl RefUnwindSafe for KeyEvent
impl Send for KeyEvent
impl Sync for KeyEvent
impl Unpin for KeyEvent
impl UnwindSafe for KeyEvent
Blanket Implementations§
source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
IntoWasmAbi::Abi
source§fn return_abi(self, extra: &mut dyn Stack) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self, extra: &mut dyn Stack) -> <T as ReturnWasmAbi>::Abi
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
. Read more