|
|
|
@ -733,8 +733,8 @@ function Menu:init()
|
|
|
|
|
local page = tonumber(self.page_info_text.input_dialog:getInputText())
|
|
|
|
|
if page and page >= 1 and page <= self.page_num then
|
|
|
|
|
self:onGotoPage(page)
|
|
|
|
|
self.page_info_text:closeInputDialog()
|
|
|
|
|
end
|
|
|
|
|
self.page_info_text:closeInputDialog()
|
|
|
|
|
end,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
@ -754,6 +754,7 @@ function Menu:init()
|
|
|
|
|
--- @todo Support utf8 lowercase.
|
|
|
|
|
local filename = FFIUtil.basename(v.path):lower()
|
|
|
|
|
local search_string = self.page_info_text.input_dialog:getInputText():lower()
|
|
|
|
|
if search_string == "" then return end
|
|
|
|
|
local i, _ = filename:find(search_string)
|
|
|
|
|
if i == 1 and not v.is_go_up then
|
|
|
|
|
self:onGotoPage(math.ceil(k / self.perpage))
|
|
|
|
|