package mew

  1. Overview
  2. Docs
module KeyTrie : sig ... end
type name = Name.t
type action =
  1. | Switch of name
  2. | Key of Key.t
  3. | KeySeq of Key.t Queue.t
  4. | Custom of unit -> unit
type t = {
  1. name : name;
  2. timeout : float option;
  3. bindings : action KeyTrie.node;
}
module Modes : sig ... end
type modes = t Modes.t
val name : t -> name
val timeout : t -> float option
val bindings : t -> action KeyTrie.node
val compare : t -> t -> int
val default_mode : 'a Modes.t -> Modes.key * 'a
val bind : t -> KeyTrie.path -> action -> unit
val unbind : t -> KeyTrie.path -> unit
OCaml

Innovation. Community. Security.