Skip to content

searchController: Maintain focus in the search entry when it has no text

Shiki Okasaka requested to merge shiki/gnome-shell:fix-reset into main

The search entry may become empty for a moment during the process by input methods. So, it has to keep the input focus when it has no text. However, at present, reset() is invoked even when the entry has no text via vfunc_unmap().

This fix ensures that the focus is not lost when changing the search text.

Closes: #7592

Merge request reports