Ev.KeyboardKeyboard events.
module Location : sig ... endKey locations.
The type for KeyboardEvent objects.
key k is the key attribute value of k. This value is affected by the current keyboard layout and modifier keys.
code k is a string that identifies the physical key of the event. This value is affected by the current keyboard layout or modifier state.
val location : t -> Location.tlocation k is the key location of k.
val repeat : t -> boolrepeat k is true if the key has been pressed in a sustained manner.
val is_composing : t -> boolis_composing k is true if the event occurs between compositionstart and compositionend events.
val alt_key : t -> boolalt_key k is true if Alt modifier is active.
val ctrl_key : t -> boolctrl_key k is true if Control modifier is active.
val shift_key : t -> boolshift_key k is true if Shift modifier is active.
val meta_key : t -> boolmeta_key k is true if Meta modifier is active.