replace_typed_text


Description:

[ HasEmitter ]
public virtual signal string replace_typed_text (string typed_text)

This function is meant to be used to replace the text in the entry with text that represents the suggestion most accurately.

This happens when the user presses tab while typing a suggestion. For example, if typing "gno" in the entry, you might have a suggest_suffix of "me.org" so that the user sees "gnome.org". But the replace_typed_text might include more data such as "https://gnome.org" as it more closely represents the suggestion.

Parameters:

typed_text

the text that was typed into the entry

self

An Suggestion

Returns:

The replacement text to insert into the entry when "tab" is pressed to complete the insertion.