Learn R Programming

RGtk2 (version 2.8.7)

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

Value

[GdkGrabStatus] GDK_GRAB_SUCCESS if the grab was successful.

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.