Learn R Programming

RGtk2 (version 2.8.8)

gdkKeyboardGrab: gdkKeyboardGrab

Description

Grabs the keyboard so that all events are passed to this application until the keyboard is ungrabbed with gdkKeyboardUngrab. This overrides any previous keyboard grab by this client.

Usage

gdkKeyboardGrab(window, owner.events = FALSE, time = "GDK_CURRENT_TIME")

Arguments

window
[GdkWindow] the GdkWindow which will own the grab (the grab window).
owner.events
[logical] if FALSE then all keyboard events are reported with respect to window. If TRUE then keyboard events for this application are reported as normal, but keyboard events outside this application are reported wit
time
[numeric] a timestamp from a GdkEvent, or GDK_CURRENT_TIME if no timestamp is available.

Value

Details

If you set up anything at the time you take the grab that needs to be cleaned up when the grab ends, you should handle the GdkEventGrabBroken events that are emitted when the grab ends unvoluntarily.