package js_of_ocaml

  1. Overview
  2. Docs

Module Dom_html.Keyboard_keySource

Use Keyboard_key when you want to identify the character that the user typed. This should only be invoked on keypress events, not keydown or keyup events.

Sourcetype t = Uchar.t option
Sourceval of_event : keyboardEvent Js.t -> t