plinth/browser/event

Types

pub type Event(sub)
pub type KeyboardEvent
pub type UIEvent(sub)

Functions

pub fn alt_key(event: Event(UIEvent(KeyboardEvent))) -> Bool
pub fn cast_event(
  raw: Dynamic,
) -> Result(Event(Dynamic), DecodeError)
pub fn cast_keyboard_event(
  raw: Dynamic,
) -> Result(Event(UIEvent(KeyboardEvent)), DecodeError)
pub fn code(event: Event(UIEvent(KeyboardEvent))) -> String
pub fn ctrl_key(event: Event(UIEvent(KeyboardEvent))) -> Bool
pub fn is_composing(event: Event(UIEvent(KeyboardEvent))) -> Bool
pub fn key(event: Event(UIEvent(KeyboardEvent))) -> String
pub fn meta_key(event: Event(UIEvent(KeyboardEvent))) -> Bool
pub fn prevent_default(event: Event(a)) -> Nil
pub fn shift_key(event: Event(UIEvent(KeyboardEvent))) -> Bool
pub fn stop_propagation(event: Event(a)) -> Nil
pub fn target(event: Event(a)) -> Dynamic
Search Document