gdkTestSimulateKey {RGtk2} | R Documentation |
This function is intended to be used in GTK+ test programs.
If (x
,y
) are > (-1,-1), it will warp the mouse pointer to
the given (x
,y
) corrdinates within window
and simulate a
key press or release event.
gdkTestSimulateKey(window, x, y, keyval, modifiers, key.pressrelease)
|
a |
|
x coordinate within |
|
y coordinate within |
|
A GDK keyboard value. |
|
Keyboard modifiers the event is setup with. |
|
either |
When the mouse pointer is warped to the target location, use
of this function outside of test programs that run in their
own virtual windowing system (e.g. Xvfb) is not recommended.
If (x
,y
) are passed as (-1,-1), the mouse pointer will not
be warped and window
origin will be used as mouse pointer
location for the event.
Also, gtkTestSimulateKey()
is a fairly low level function,
for most testing purposes, gtkTestWidgetSendKey
is the
right function to call which will generate a key press event
followed by its accompanying key release event.
Since 2.14
[logical] whether all actions neccessary for a key event simulation were carried out successfully.
Derived by RGtkGen from GTK+ documentation