Module OgamlCore.Event.KeyEvent

Key event information

This module defines a public structure encapsulating information about a key event

type t = {key : Keycode.t; shift : bool; control : bool; alt : bool}
A record containing information about a key event

Record fields

key : Keycode.t
Key coresponding to the event
shift : bool
true iff the shift modifier was active during the event
control : bool
true iff the ctrl modifier (or cmd under OSX) was active during the event
alt : bool
true iff the alt modifier was active during the event

See : OgamlCore.KeyCode