[]Struct moxie_dom::prelude::event::KeyUp

pub struct KeyUp(_);

A key is released. MDN documentation

Methods from Deref<Target = KeyboardEvent>

pub const DOM_KEY_LOCATION_STANDARD: u32[src]

pub const DOM_KEY_LOCATION_LEFT: u32[src]

pub const DOM_KEY_LOCATION_RIGHT: u32[src]

pub const DOM_KEY_LOCATION_NUMPAD: u32[src]

pub fn char_code(&self) -> u32[src]

Getter for the charCode field of this object.

MDN Documentation

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

pub fn key_code(&self) -> u32[src]

Getter for the keyCode field of this object.

MDN Documentation

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

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

Getter for the altKey field of this object.

MDN Documentation

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

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

Getter for the ctrlKey field of this object.

MDN Documentation

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

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

Getter for the shiftKey field of this object.

MDN Documentation

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

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

Getter for the metaKey field of this object.

MDN Documentation

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

pub fn location(&self) -> u32[src]

Getter for the location field of this object.

MDN Documentation

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

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

Getter for the repeat field of this object.

MDN Documentation

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

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

Getter for the isComposing field of this object.

MDN Documentation

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

pub fn key(&self) -> String[src]

Getter for the key field of this object.

MDN Documentation

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

pub fn code(&self) -> String[src]

Getter for the code field of this object.

MDN Documentation

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

pub fn get_modifier_state(&self, key: &str) -> bool[src]

The getModifierState() method.

MDN Documentation

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

pub fn init_keyboard_event(&self, type_arg: &str) -> Result<(), JsValue>[src]

The initKeyboardEvent() method.

MDN Documentation

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

pub fn init_keyboard_event_with_bubbles_arg(
    &self,
    type_arg: &str,
    bubbles_arg: bool
) -> Result<(), JsValue>
[src]

The initKeyboardEvent() method.

MDN Documentation

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

pub fn init_keyboard_event_with_bubbles_arg_and_cancelable_arg(
    &self,
    type_arg: &str,
    bubbles_arg: bool,
    cancelable_arg: bool
) -> Result<(), JsValue>
[src]

The initKeyboardEvent() method.

MDN Documentation

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

pub fn init_keyboard_event_with_bubbles_arg_and_cancelable_arg_and_view_arg(
    &self,
    type_arg: &str,
    bubbles_arg: bool,
    cancelable_arg: bool,
    view_arg: Option<&Window>
) -> Result<(), JsValue>
[src]

The initKeyboardEvent() method.

MDN Documentation

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

pub fn init_keyboard_event_with_bubbles_arg_and_cancelable_arg_and_view_arg_and_key_arg(
    &self,
    type_arg: &str,
    bubbles_arg: bool,
    cancelable_arg: bool,
    view_arg: Option<&Window>,
    key_arg: &str
) -> Result<(), JsValue>
[src]

The initKeyboardEvent() method.

MDN Documentation

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

pub fn init_keyboard_event_with_bubbles_arg_and_cancelable_arg_and_view_arg_and_key_arg_and_location_arg(
    &self,
    type_arg: &str,
    bubbles_arg: bool,
    cancelable_arg: bool,
    view_arg: Option<&Window>,
    key_arg: &str,
    location_arg: u32
) -> Result<(), JsValue>
[src]

The initKeyboardEvent() method.

MDN Documentation

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

pub fn init_keyboard_event_with_bubbles_arg_and_cancelable_arg_and_view_arg_and_key_arg_and_location_arg_and_ctrl_key(
    &self,
    type_arg: &str,
    bubbles_arg: bool,
    cancelable_arg: bool,
    view_arg: Option<&Window>,
    key_arg: &str,
    location_arg: u32,
    ctrl_key: bool
) -> Result<(), JsValue>
[src]

The initKeyboardEvent() method.

MDN Documentation

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

pub fn init_keyboard_event_with_bubbles_arg_and_cancelable_arg_and_view_arg_and_key_arg_and_location_arg_and_ctrl_key_and_alt_key(
    &self,
    type_arg: &str,
    bubbles_arg: bool,
    cancelable_arg: bool,
    view_arg: Option<&Window>,
    key_arg: &str,
    location_arg: u32,
    ctrl_key: bool,
    alt_key: bool
) -> Result<(), JsValue>
[src]

The initKeyboardEvent() method.

MDN Documentation

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

pub fn init_keyboard_event_with_bubbles_arg_and_cancelable_arg_and_view_arg_and_key_arg_and_location_arg_and_ctrl_key_and_alt_key_and_shift_key(
    &self,
    type_arg: &str,
    bubbles_arg: bool,
    cancelable_arg: bool,
    view_arg: Option<&Window>,
    key_arg: &str,
    location_arg: u32,
    ctrl_key: bool,
    alt_key: bool,
    shift_key: bool
) -> Result<(), JsValue>
[src]

The initKeyboardEvent() method.

MDN Documentation

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

pub fn init_keyboard_event_with_bubbles_arg_and_cancelable_arg_and_view_arg_and_key_arg_and_location_arg_and_ctrl_key_and_alt_key_and_shift_key_and_meta_key(
    &self,
    type_arg: &str,
    bubbles_arg: bool,
    cancelable_arg: bool,
    view_arg: Option<&Window>,
    key_arg: &str,
    location_arg: u32,
    ctrl_key: bool,
    alt_key: bool,
    shift_key: bool,
    meta_key: bool
) -> Result<(), JsValue>
[src]

The initKeyboardEvent() method.

MDN Documentation

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

Trait Implementations

impl AsRef<Event> for KeyUp[src]

impl AsRef<JsValue> for KeyUp[src]

impl Debug for KeyUp[src]

impl Deref for KeyUp[src]

type Target = KeyboardEvent

The resulting type after dereferencing.

impl Event for KeyUp[src]

impl From<KeyUp> for JsValue[src]

impl FromWasmAbi for KeyUp[src]

type Abi = u32

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

impl GlobalEvent for KeyUp[src]

impl IntoWasmAbi for KeyUp[src]

type Abi = u32

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

impl JsCast for KeyUp[src]

impl OptionFromWasmAbi for KeyUp[src]

impl OptionIntoWasmAbi for KeyUp[src]

impl RefFromWasmAbi for KeyUp[src]

type Abi = u32

The wasm ABI type references to Self are recovered from.

type Anchor = Ref<'static, KeyUp>

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

impl RefMutFromWasmAbi for KeyUp[src]

type Abi = u32

Same as RefFromWasmAbi::Abi

type Anchor = RefMut<'static, KeyUp>

Same as RefFromWasmAbi::Anchor

Auto Trait Implementations

impl RefUnwindSafe for KeyUp

impl !Send for KeyUp

impl !Sync for KeyUp

impl Unpin for KeyUp

impl UnwindSafe for KeyUp

Blanket Implementations

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

impl<T> AsContext for T where
    T: Debug + 'static, 
[src]

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

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

impl<T> Downcast for T where
    T: Any

impl<T> Erased for T

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

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

impl<T> Pretty for T where
    T: AsRef<JsValue>, 
[src]

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

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi

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.

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.