Dict/Wiki lookup: less text cleanup on manual input

Don't cleanup input text as much when entered manually
(or when it's sane) than when coming from book text
selection.
This may allow looking up words like "-suffix", or
do more precise Wikipedia queries.
This commit is contained in:
poire-z committed 2021-01-02 11:50:32 +01:00
1 parent 5756f1f43e
commit aedab2d695
5 files changed
+51 -41

No files matched your search

+1 -1
View File
@@ -711,7 +711,7 @@ function ReaderLink:onGoToExternalLink(link_url)
callback = function()
UIManager:nextTick(function()
UIManager:close(dialog)
self.ui:handleEvent(Event:new("LookupWikipedia", wiki_page, false, true, wiki_lang))
self.ui:handleEvent(Event:new("LookupWikipedia", wiki_page, true, false, true, wiki_lang))
end)
end,
})