func (d *FileSelectDialog) updateEditBox() {
	s := d.listBox.SelectedItemText()
	if s == "" || s == ".." ||
		(strings.HasSuffix(s, string(os.PathSeparator)) && !d.selectDir) {
		d.edFile.Clear()
		return
	}
	d.edFile.SetTitle(strings.TrimSuffix(s, string(os.PathSeparator)))
}
func (d *FileSelectDialog) updateEditBox() {
	s := d.listBox.SelectedItemText()
	if s == "" || s == ".." ||
		(strings.HasSuffix(s, string(os.PathSeparator)) && !d.selectDir) {
		d.edFile.Clear()
		return
	}
	d.edFile.SetTitle(strings.TrimSuffix(s, string(os.PathSeparator)))
}
// Sets the EditField value with the selected item in ListBox if:
//   * a directory is selected and option 'select directory' is set
//   * a file is selected and option 'select directory' is not set