[UX] Gesture manager: add action - fulltext search (#4715)
Fixes #4687.
This commit is contained in:
1 parent
c9de46d656
commit
e96ac7e7dc
2 files changed
+18
-8
No files matched your search
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user