handle_event


Description:

[ Version ( since = "3.16" ) ]
public bool handle_event (Event event)

This function should be called when the top-level window which contains the search entry received a key event.

If the entry is part of a SearchBar, it is preferable to call handle_event instead, which will reveal the entry in addition to passing the event to this function.

If the key event is handled by the search entry and starts or continues a search, gdk_event_stop will be returned. The caller should ensure that the entry is shown in this case, and not propagate the event further.

Parameters:

this

a SearchEntry

event

a key event

Returns:

gdk_event_stop if the key press event resulted in a search beginning or continuing, gdk_event_propagate otherwise.




2022 vala-language.org