grab_focus_without_selecting


Description:

public bool grab_focus_without_selecting ()

Causes the text widget to have the keyboard focus.

It behaves like [method@Gtk.Widget.grab_focus], except that it does not select the contents of this.

You only want to call this on some special entries which the user usually doesn't want to replace all text in, such as search-as-you-type entries.

Parameters:

this

a text widget

Returns:

true if focus is now inside this