pub fn test_widget_send_key(
widget: &impl IsA<Widget>,
) -> bool
This function will generate keyboard press and release events in
the middle of the first GdkWindow found that belongs to
For windowless widgets like
Button (which returns
WidgetExt::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
gdk_test_simulate_key() for details.
Widget to generate a key press and release on.
A Gdk keyboard value.
Keyboard modifiers the event is setup with.
whether all actions neccessary for the key event simulation were carried out successfully.