don't fail when in file search is open and a modal dialog is used, fixes #224
Also, on changing selection for the search box, ensure new selection is highlighted when search invoked.
Allow modal dialogs to be on top of dialogs like infile-search