5f10047b58
If the search entry does not have any text typed in and a button press happens outside of the search entry, we set key focus to NULL to make the search entry appear unfocused. This is quite intrusive and can easily cause unwanted focus changes, so change the captured-event handler to only call `reset()` if the search entry actually is focused. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/683