exit from filechooser on BACK and HOME

This makes it easy to exit completly from document with HOME+HOME
which is much easier and intuitive than HOME+BACK
This commit is contained in:
Dobrica Pavlinusic
2012-03-06 20:07:04 +01:00
parent 796b42cc36
commit 3a38e81d58

View File

@@ -239,7 +239,7 @@ function FileChooser:choose(ypos, height)
return self.path.."/"..self.files[perpage*(self.page-1)+self.current - #self.dirs]
end
pagedirty = true
elseif ev.code == KEY_BACK then
elseif ev.code == KEY_BACK or ev.code == KEY_HOME then
return nil
end
end