Module event_handler

Source
Expand description

This module contains code related to event handling; ie things that update the dom, related to web_sys::Event

Functionsยง

drag_ev
See keyboard_ev
ev
Create an event handler that accepts a closure, and passes a web_sys::Event, allowing full control of event-handling.
input_ev
Create an event that passes a String of field text, for fast input handling.
keyboard_ev
Create an event that passes a web_sys::KeyboardEvent, allowing easy access to items like key_code() and key().
mouse_ev
See keyboard_ev
pointer_ev
See keyboard_ev
raw_evDeprecated
Create an event that accepts a closure, and passes a web_sys::Event, allowing full control of event-handling.
simple_evDeprecated
Create an event that passes no data, other than it occurred. Foregoes using a closure, in favor of pointing to a message directly.
touch_ev
See keyboard_ev
wheel_ev
See keyboard_ev