Widget.grabFocus
bool grabFocus()Causes widget to have the keyboard focus for the gtk.window.Window it's inside.
If widget is not focusable, or its vfuncGtk.Widget.grab_focus implementation cannot transfer the focus to a descendant of widget that is focusable, it will not take focus and false will be returned.
Calling gtk.widget.Widget.grabFocus on an already focused widget is allowed, should not have an effect, and return true.
Returns
true if focus is now inside widget.