Fix file/directory choosers (prevent resetting text field when typing path manually)