mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
[UX] Search dialogs: don't close when searching with nothing entered (#7501)
File search, Fulltext search, Search dictionary, Search Wikipedia, DictQuickLookup: do nothing when nothing entered and search is pressed.
This commit is contained in:
@@ -52,6 +52,7 @@ function ReaderWikipedia:lookupInput()
|
||||
text = _("Search Wikipedia"),
|
||||
is_enter_default = true,
|
||||
callback = function()
|
||||
if self.input_dialog:getInputText() == "" then return end
|
||||
UIManager:close(self.input_dialog)
|
||||
-- Trust that input text does not need any cleaning (allows querying for "-suffix")
|
||||
self:onLookupWikipedia(self.input_dialog:getInputText(), true)
|
||||
|
||||
Reference in New Issue
Block a user