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

Syntax

public static GrabStatus Grab (Window window, bool owner_events, uint time_)

Parameters

window
the Gdk.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 Gdk.Event or EventDND.Time if no timestamp is available.

Returns

a GrabStatus.Success if the grab was successful.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: Gdk
Assembly: gdk-sharp (in gdk-sharp.dll)