pub(crate) trait KeyboardEventMethods<D: DomTypes> {
Show 16 methods // Required methods fn Key(&self) -> DOMString; fn Code(&self) -> DOMString; fn Location(&self) -> u32; fn CtrlKey(&self) -> bool; fn ShiftKey(&self) -> bool; fn AltKey(&self) -> bool; fn MetaKey(&self) -> bool; fn Repeat(&self) -> bool; fn IsComposing(&self) -> bool; fn GetModifierState(&self, keyArg: DOMString) -> bool; fn InitKeyboardEvent( &self, typeArg: DOMString, bubblesArg: bool, cancelableArg: bool, viewArg: Option<&D::Window>, keyArg: DOMString, locationArg: u32, modifiersListArg: DOMString, repeat: bool, locale: DOMString, ); fn CharCode(&self) -> u32; fn KeyCode(&self) -> u32; fn Which(&self) -> u32; fn IsTrusted(&self) -> bool; fn Constructor( global: &D::Window, proto: Option<HandleObject<'_>>, can_gc: CanGc, typeArg: DOMString, keyboardEventInitDict: &KeyboardEventInit<D>, ) -> Fallible<DomRoot<D::KeyboardEvent>>;
}

Required Methods§

Source

fn Key(&self) -> DOMString

Source

fn Code(&self) -> DOMString

Source

fn Location(&self) -> u32

Source

fn CtrlKey(&self) -> bool

Source

fn ShiftKey(&self) -> bool

Source

fn AltKey(&self) -> bool

Source

fn MetaKey(&self) -> bool

Source

fn Repeat(&self) -> bool

Source

fn IsComposing(&self) -> bool

Source

fn GetModifierState(&self, keyArg: DOMString) -> bool

Source

fn InitKeyboardEvent( &self, typeArg: DOMString, bubblesArg: bool, cancelableArg: bool, viewArg: Option<&D::Window>, keyArg: DOMString, locationArg: u32, modifiersListArg: DOMString, repeat: bool, locale: DOMString, )

Source

fn CharCode(&self) -> u32

Source

fn KeyCode(&self) -> u32

Source

fn Which(&self) -> u32

Source

fn IsTrusted(&self) -> bool

Source

fn Constructor( global: &D::Window, proto: Option<HandleObject<'_>>, can_gc: CanGc, typeArg: DOMString, keyboardEventInitDict: &KeyboardEventInit<D>, ) -> Fallible<DomRoot<D::KeyboardEvent>>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§