KeyEvent

Categoryclass
Typehime_key_event_t
InheritsEvent

Keyboard event.

Methods

const char16_t* hime_key_event_get_key(self)

Return the meaning (character or action) of the key event, in the context of the active layout and modifiers. It corresponds to DOM UI Events KeyboardEvent key values.

See http://www.w3.org/TR/DOM-Level-3-Events-key/ for possible values.

Parameters

Return

const char16_t*

const char16_t* hime_key_event_get_code(self)

Return a platform-independent representation of the physical key, based on DOM UI Events KeyboardEvent code values. It does not vary depending on key layout.

See http://www.w3.org/TR/DOM-Level-3-Events-code/ for possible values.

Parameters

Return

const char16_t*