incr_dom_keyboard

A library for Incr_dom keybinding and keyboard shortcut helpers
IN THIS PACKAGE
type t = {
key : string -> Virtual_dom.Vdom.Node.t;
plain_text : string -> Virtual_dom.Vdom.Node.t;
}

A View_spec.t allows the user to customize how the help text is converted to a Vdom node.

val plain : t

plain converts all help text parts to text nodes without further modification.

val with_classes : key_class:string -> plain_text_class:string -> t

with_classes converts all help text parts to text nodes and wraps them in spans with the given classes. This allows the user to style the help text using CSS.