generate_keyboard_event


Description:


public bool generate_keyboard_event (long keyval, string? keystring, KeySynthType synth_type) throws Error

Synthesizes a keyboard event (as if a hardware keyboard event occurred in the current UI context).

Parameters:

keyval

a int indicating the keycode or keysym or modifier mask of the key event being synthesized.

keystring

an (optional) UTF-8 string which, if synth_type is atspi_key_string, indicates a 'composed' keyboard input string being synthesized; this type of keyboard event synthesis does not emulate hardware keypresses but injects the string as though a composing input method (such as XIM) were used.

synth_type

an KeySynthType flag indicating whether keyval is to be interpreted as a keysym rather than a keycode (atspi_key_sym) or a string ( atspi_key_string) or a modifier mask (atspi_key_lockmodifiers and atspi_key_unlockmodifiers), or whether to synthesize atspi_key_press, atspi_key_release, or both ( atspi_key_pressrelease).

Returns:

true if successful, otherwise false.


Namespace: Atspi
Package: atspi-2



2022 vala-language.org