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 gtk.Button (which returns FALSE from
Widget.getHasWindow), 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.
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 gtk.Button (which returns FALSE from Widget.getHasWindow), 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.