keyboard_grab


Description:

public GrabStatus keyboard_grab (CanvasItem item, bool owner_events, uint32 time)

Attempts to grab the keyboard for the given item.

Parameters:

this

a Canvas.

item

the item to grab the keyboard for.

owner_events

true if keyboard events for this application will be reported normally, or false if all keyboard events will be reported with respect to the grab item.

time

the time of the event that lead to the keyboard grab. This should come from the relevant Event.

Returns:

gdk_grab_success if the grab succeeded.