+ if (FindFocus() != m_list) return;
+
+ wxString filename( event.m_item.m_text );
+ if (filename == _T("..")) return;
+
+ wxString dir;
+ m_list->GetDir( dir );
+ if (dir != _T("/")) dir += _T("/");
+ dir += filename;
+ if (wxDirExists(dir)) return;
+
+ m_text->SetValue( filename );