Testing.widgetSendKey

This function will generate keyboard press and release events in the middle of the first GdkWindow found that belongs to widget. For GTK_NO_WINDOW widgets like GtkButton, this will often be an input-only event window. For other widgets, this is usually widget->window. Certain caveats should be considered when using this function, in particular because the mouse pointer is warped to the key press location, see gdk_test_simulate_key() for details. Since 2.14

class Testing
static
int
widgetSendKey

Parameters

widget Widget

Widget to generate a key press and release on.

keyval uint

A Gdk keyboard value.

modifiers GdkModifierType

Keyboard modifiers the event is setup with.

Return Value

Type: int

whether all actions neccessary for the key event simulation were carried out successfully.

Meta