pub struct KeyDownEvent(_);
The KeyDownEvent
is fired when a key is pressed down.
Unlike the KeyPressEvent
event it's also fired for keys which
do not produce a character value.
(JavaScript docs)
The type returned in the event of a conversion error.
type Error = ConversionError
The type returned in the event of a conversion error.
type Error = ConversionError
The type returned in the event of a conversion error.
type Error = ConversionError
The type returned in the event of a conversion error.
type Error = ConversionError
The type returned in the event of a conversion error.
Checks whenever a given Reference if of type Self
.
Converts a given reference into a concrete reference-like wrapper. Doesn't do any type checking; highly unsafe to use! Read more
Indicates whether this event bubbles upward through the DOM. Read more
A historical alias to Event.stopPropagation()
. Read more
A historical alias to Event.stopPropagation()
. Setting this to true
before returning from an event handler will stop propagation of the event. Read more
Indicates whether the event is cancelable. Read more
A reference to the currently registered target of this event. Read more
Indicates whether preventDefault
has been called on this event. Read more
Indicates which phase of event flow is currently being evaluated. Read more
Prevents any further listeners from being called for this event. Read more
Stops the propagation of this event to descendants in the DOM. Read more
Returns a reference to the target to which this event was originally registered. Read more
Returns the time in milliseconds at which this event was created. Read more
Indicates whether the event was generated by a user action.
Returns a string containing the type of event. It is set when the event is constructed and is the name commonly used to refer to the specific event. Read more
Cancels the event if it is cancelable, without stopping further propagation of the event. Read more
A string representing the event type. Read more
Indicates whether the Alt key was down when this event was fired. Read more
Returns a code value that indicates the physical key pressed on the keyboard. Read more
Returns whether the Ctrl key was down when this event was fired. Read more
Returns whether a modifier key was down when this event was fired. Read more
Returns whether this event was fired during composition. Read more
Returns the location of the key on the keyboard. Read more
Returns the value of a key or keys pressed by the user. Read more
Indicates whether the Meta key was down when this event was fired. Read more
Indicates whether the key is held down such that it is repeating. Read more
Indicates whether the Shift key was down when this event was fired. Read more
Performs copy-assignment from source
. Read more
This method tests for self
and other
values to be equal, and is used by ==
. Read more
This method tests for !=
.
Formats the value using the given formatter. Read more
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static