Function

Atspigenerate_keyboard_event

Declaration [src]

gboolean
atspi_generate_keyboard_event (
  glong keyval,
  const gchar* keystring,
  AtspiKeySynthType synth_type,
  GError** error
)

Description [src]

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

Parameters

keyval glong
 

A #gint indicating the keycode or keysym or modifier mask of the key event being synthesized.

keystring const gchar*
 

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.

 The argument can be NULL.
 The data is owned by the caller of the function.
 The value is a NUL terminated UTF-8 string.
synth_type AtspiKeySynthType
 

An AtspiKeySynthType 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).

error GError **
  The return location for a GError*, or NULL.

Return value

Returns: gboolean
 

TRUE if successful, otherwise FALSE.