Function miral::toolkit::mir_keyboard_event_key_text

Function Documentation

char const *miral::toolkit::mir_keyboard_event_key_text(MirKeyboardEvent const *event)

Retrieve the text the key press would emit as null terminated utf8 string.

The text will only be available to key down and key repeat events. For mir_keyboard_action_up or key presses that do produce text an empty string will be returned.

Parameters:

event[in] The key event

Returns:

The text