test_widget_send_key
Description:
[ Version ( since = "2.14" ) ]
public bool test_widget_send_key (Widget widget, uint keyval, ModifierType modifiers)
This function will generate keyboard press and release events in the middle of the first GdkWindow found that belongs to widget
.
For windowless widgets like Button (which returns false from get_has_window), 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 test_simulate_key for details.
Parameters:
widget |
Widget to generate a key press and release on. |
keyval |
A Gdk keyboard value. |
modifiers |
Keyboard modifiers the event is setup with. |
Returns:
whether all actions neccessary for the key event simulation were carried out successfully. |
Namespace: Gtk
Package: gtk+-3.0