client: clear selection when focus search box

closes #268