Make double-tap on directory open that directory when in dirselectmode

This commit is contained in:
Björn Wingman 2012-01-06 15:00:47 +01:00
parent 8478fe19e9
commit 6da6fad62f
1 changed files with 4 additions and 1 deletions

View File

@ -217,7 +217,10 @@ class FileChooserController(FloatLayout):
if isdir(entry.path) and not self.dirselect:
self.open_entry(entry)
elif touch.is_double_tap:
self.dispatch('on_submit', self.selection, touch)
if self.dirselect and isdir(entry.path):
self.open_entry(entry)
else:
self.dispatch('on_submit', self.selection, touch)
def open_entry(self, entry):
try: