add condition to not empty search filed when clicking Ctrl+f(issue6334)