type code
=
| Char of string |
| Enter |
| Escape |
| Tab |
| Up |
| Down |
| Left |
| Right |
| F1 |
| F2 |
| F3 |
| F4 |
| F5 |
| F6 |
| F7 |
| F8 |
| F9 |
| F10 |
| F11 |
| F12 |
| Next_page |
| Prev_page |
| Home |
| End |
| Insert |
| Delete |
| Backspace |
val code_to_int : code -> int
val code_to_string : code -> string
type t
=
{
control : bool; |
meta : bool; |
shift : bool; |
code : code; |
}
val t_to_int : t -> int * int list
val t_to_string : t -> string
type modifier
=
val compare_code : t -> t -> int
val compare_modifier : t -> t -> int
type modifiers
= Modifiers.t
val compare : t -> t -> int
val control : t -> bool
val meta : t -> bool
val shift : t -> bool
val code : t -> code
val create : code:code -> modifiers:Modifiers.t -> t
val create_modifiers : Modifiers.elt list -> Modifiers.t
val modifiers : t -> Modifiers.t
val modifier : key:t -> modifier:modifier -> bool
val equal : t -> t -> bool
val hash : t -> int
val to_string : t -> string