Keystroke.Keyboard_codetype t = Js_of_ocaml.Dom_html.Keyboard_code.tinclude Sexplib0.Sexpable.S with type t := tinclude Sexplib0.Sexpable.Of_sexp with type t := tval t_of_sexp : Sexplib0.Sexp.t -> tinclude Sexplib0.Sexpable.Sexp_of with type t := tval sexp_of_t : t -> Sexplib0.Sexp.tinclude Ppx_compare_lib.Comparable.S with type t := tinclude Core.Bin_prot.Binable.S with type t := tinclude Bin_prot.Binable.S_only_functions with type t := tval bin_read_t : t Bin_prot.Read.readerval __bin_read_t__ : t Bin_prot.Read.vtag_readerThis function only needs implementation if t exposed to be a polymorphic variant. Despite what the type reads, this does *not* produce a function after reading; instead it takes the constructor tag (int) before reading and reads the rest of the variant t afterwards.
val bin_shape_t : Bin_prot.Shape.tval bin_writer_t : t Bin_prot.Type_class.writerval bin_reader_t : t Bin_prot.Type_class.readerval bin_t : t Bin_prot.Type_class.tinclude Ppx_hash_lib.Hashable.S_any with type t := tval hash_fold_t : t Ppx_hash_lib.hash_foldval hash : t -> Ppx_hash_lib.Std.Hash.hash_valueinclude Ppx_enumerate_lib.Enumerable.S with type t := tval all : t listinclude Ppx_compare_lib.Equal.S with type t := tval of_event : Js_of_ocaml.Dom_html.keyboardEvent Js_of_ocaml.Js.t -> tval to_location : t -> intto_location returns the location of the key on the keyboard. https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/location
val to_code_string : t -> stringto_code_string returns the value of evt##.code that this Keyboard_code.t represents; i.e. which physical key was pressed. Note that this may not account for character mappings. https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/code
val to_key_code : t -> intto_key_code returns the value of evt##.keyCode that this Keyboard_code.t represents. keyCode is deprecated in web standards. https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/keyCode