KeyEvent did not work properly on X11 because Key is not linked to the proper values used in InputCode. This commit moves the Key enum in key_event.h to the Display module and adds a function Key clan::decode_ic(InputCode) to convert from platform-specific-values on InputCode to fixed values on Key.
Note that the ALT, CapsLock and ScrollLock keys, albeit defined in Key, is not available in InputCode and thus is converted by the function to Key::none.
KeyEvent
did not work properly on X11 becauseKey
is not linked to the proper values used inInputCode
. This commit moves theKey
enum inkey_event.h
to the Display module and adds a functionKey clan::decode_ic(InputCode)
to convert from platform-specific-values onInputCode
to fixed values onKey
.Note that the ALT, CapsLock and ScrollLock keys, albeit defined in
Key
, is not available inInputCode
and thus is converted by the function toKey::none
.