Add option to avoid losing focus.