keyboard_grab


Description:


[ Version ( deprecated = true , deprecated_since = "3.0" ) ]
public GrabStatus keyboard_grab (Window window, bool owner_events, uint32 time_)

Warning: keyboard_grab is deprecated since 3.0.

Grabs the keyboard so that all events are passed to this application until the keyboard is ungrabbed with keyboard_ungrab.

Note:

Use grab instead.

This overrides any previous keyboard grab by this client.

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 EventGrabBroken events that are emitted when the grab ends unvoluntarily.

Parameters:

window

the Window which will own the grab (the grab window).

owner_events

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 with respect to window. Both key press and key release events are always reported, independant of the event mask set by the application.

time_

a timestamp from a Event, or gdk_current_time if no timestamp is available.

Returns:

gdk_grab_success if the grab was successful.


Namespace: Gdk
Package: gdk-3.0