Package: gtk

Function gtk:widget-grab-focus

Lambda List

gtk:widget-grab-focus (widget)

Arguments

widget -- a gtk:widget object

Return Value

True if the focus is now inside widget.

Details

Causes the widget to have the keyboard focus for the gtk:window widget it is inside.

If the widget is not focusable, or its grab_focus() implementation cannot transfer the focus to a descendant of the widget that is focusable, it will not take focus and false will be returned.

Calling the gtk:widget-grab-focus function on an already focused widget is allowed, should not have an effect, and returns true.
 

See also

#2025-2-13