2
0
mirror of https://github.com/koreader/koreader synced 2024-10-31 21:20:20 +00:00

Merge pull request #483 from tigran123/selectmenu-home

Use only Back not Home to exit dialogs
This commit is contained in:
Dobrica Pavlinušić 2012-10-23 13:25:45 -07:00
commit cdd2eddca9
3 changed files with 4 additions and 4 deletions

View File

@ -475,7 +475,7 @@ function InputBox:addAllCommands()
-- NuPogodi, 02.06.12: inputmode-dependent commands are collected
self:ModeDependentCommands() -- here
self.commands:add({KEY_BACK, KEY_HOME}, nil, "Back, Home",
self.commands:add(KEY_BACK, nil, "Back",
"back",
function(self)
self.input_string = nil

View File

@ -238,7 +238,7 @@ function SelectMenu:addAllCommands()
HelpPage:show(0, G_height, sm.commands)
sm.pagedirty = true
end)
self.commands:add({KEY_BACK,KEY_HOME}, nil, "Back, Home",
self.commands:add(KEY_BACK, nil, "Back",
"exit menu",
function(sm)
return "break"
@ -249,7 +249,7 @@ end
function SelectMenu:clearCommands()
self.commands = Commands:new{}
self.commands:add({KEY_BACK,KEY_HOME}, nil, "Back, Home",
self.commands:add(KEY_BACK, nil, "Back",
"exit menu",
function(sm)
return "break"

View File

@ -2791,7 +2791,7 @@ function UniReader:addAllCommands()
factor = ev.code - KEY_Z + 20
x_direction = last_direction["x"]
y_direction = last_direction["y"]
elseif ev.code == KEY_BACK or ev.code == KEY_HOME then
elseif ev.code == KEY_BACK then
running_corner = false
end