module Condition : sig ... end
Condition.t is a condition based on a keyboard event (which importantly includes the event's focus). This is intended to be used in keyboard event handlers that look at the keyboard event to determine whether or not to take a certain action.
module Handler : sig ... end
Handler.t handles a keyboard event by returning a
Vdom.Event.t. These should be used as building blocks for keyboard event handlers, for instance to handle a specific set of keys.
module Command : sig ... end
module Action : sig ... end
val empty : t
of_command_list_exn create a keyboard event handler from a list of actions. If the same key appears in multiple actions, an exception is raised.
add_action_exn adds a new action to a keyboard event handler. If any key from the new action already exists in the handler, an exception is raised.
add_action_exn, but restricted to disabled key actions
add_action_exn, but overrides old actions in the case of a conflict.
merge t1 t2 ~on_dup creates new keyboard event handlers containing the actions from
on_dup dictates how to deal with keys that have actions in both
`Override_with_rightuses the action from
`Bothuses both actions, and combines them into a single line if used with
get_help_text. Note that if the actions belong to different groups in the help text, it will use the first group.