pub struct KeyboardEvent { /* private fields */ }
Expand description

This class represents a keyboard event.

Implementations

Constructs a KeyboardEvent.

Parameters
  • action: Signals if key is pressed or released.
  • symbol: Name of the key.
  • code: Code of the key.
  • modifiers: Signals if alt, ctrl or shift are pressed or their combination.

Trait Implementations

Wrap the specified raw pointer Read more

Return an the underlying raw pointer while consuming this wrapper. Read more

Return the underlying raw pointer. Read more

Return the underlying mutable raw pointer Read more

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.