How can I do something when enter is pressed on a SearchEntry?

I have this:

    search_entry.connect_search_changed(clone!(@weak search_entry => move |_| {
        println!("{}", search_entry.text());

but I want it to only be activated if I press enter

Signal ::activate.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.