[UX] Gesture manager: add action - fulltext search (#4715)

Fixes #4687.
This commit is contained in:
Frans de Jonge
2019-03-02 21:36:30 +01:00
committed by GitHub
parent c9de46d656
commit e96ac7e7dc
2 changed files with 18 additions and 8 deletions

View File

@@ -21,14 +21,20 @@ end
function ReaderSearch:addToMainMenu(menu_items)
menu_items.fulltext_search = {
text = _("Fulltext search"),
tap_input = {
title = _("Input text to search for"),
ok_text = _("Search all text"),
type = "text",
callback = function(input)
self:onShowSearchDialog(input)
end,
},
callback = function()
self:onShowFulltextSearchInput()
end,
}
end
function ReaderSearch:onShowFulltextSearchInput()
self:onInput{
title = _("Enter text to search for"),
ok_text = _("Search all text"),
type = "text",
callback = function(input)
self:onShowSearchDialog(input)
end,
}
end