From 3a38e81d5828ff68debffd2e97d24fd3c197cbd8 Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Tue, 6 Mar 2012 20:07:04 +0100 Subject: [PATCH] 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 --- filechooser.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filechooser.lua b/filechooser.lua index c0ad74e30..c70b12613 100644 --- a/filechooser.lua +++ b/filechooser.lua @@ -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