package virtual_dom

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t = Vdom_keyboard__.Import.Dom_html.keyboardEvent Vdom_keyboard__.Import.Js.t
module Keyboard_code : sig ... end
val key : t -> Keyboard_code.t
val ctrl : t -> bool
val alt : t -> bool
val shift : t -> bool
val meta : t -> bool
val match_modifiers : ?ctrl:bool -> ?alt:bool -> ?shift:bool -> ?meta:bool -> t -> bool

match_modifiers evaluates a t's modifiers vs the function's arguments. If an argument is not specified then that modifier is not evaluated.

val no_modifiers : t -> bool
val map : t -> f: (([ `Ctrl of bool ] * [ `Alt of bool ] * [ `Shift of bool ] * [ `Meta of bool ] * Keyboard_code.t) -> 'a) -> 'a
OCaml

Innovation. Community. Security.