Always give editor focus when dismissing search dialog

This fixes a small bug in which the editor would not receive focus when dismissing the search dialog with the escape key.