mirror of https://github.com/kivy/kivy.git
Make double-tap on directory open that directory when in dirselectmode
This commit is contained in:
parent
8478fe19e9
commit
6da6fad62f
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue