You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
koreader/frontend/ui
Aleksa Sarai 7a0e3d5e68 readerhighlight: remove selected_word and use selected_text everywhere
There were two ways of specifing selected text for a highlight depending
on whether it was a "single word" or text selected using hold-and-pan.
In addition to being a bit more complicated than is necessary, with the
addition of the language support plugin system (where the "single word"
selected might be expanded), it makes more sense to simply use the same
logic and table structure for both cases.

The dictionary lookup special case (hold-without-pan triggering a
dictionary lookup by default) still works as before.

In addition, this patch fixes a minor inefficiency during dictionary
quick lookup -- before this patch, the highlight would be re-selected
because the quick lookup window is run concurrently and tries to fetch
ReaderHighlight.selected_text but this is set to nil immediately after
triggering the lookup. This is unnecessary because :clear() will be
called anyway when the quick pop-up closes, and so clearing this can be
left until then.

Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
3 years ago
..
data Greek keyboard: minor updates (#8319) 3 years ago
elements Bookmarks: new settings and tweaks (#8301) 3 years ago
message Remove zsync plugin (#7957) 3 years ago
network Fix syntax 3 years ago
plugin Plugins: adds PluginMenuInserter helper (#7419) 3 years ago
widget readerhighlight: remove selected_word and use selected_text everywhere 3 years ago
bidi.lua [RTL UI] Bidi-wrap filenames, paths, urls, metadata 4 years ago
cloudmgr.lua Standardize select/choose to choose (#8128) 3 years ago
downloadmgr.lua Calibre plugin fixes for android (#6996) 3 years ago
event.lua Revamp flash_ui handling, once more, with feeling ;) (#7262) 3 years ago
font.lua Font menu: show font names with their own font 4 years ago
geometry.lua geom: supplement :combine with more generic .boundingBox 3 years ago
gesturerange.lua Minor Input & TimeVal cleanups 3 years ago
hook_container.lua Input: Process input events in batches (#7483) 3 years ago
language.lua VirtualKeyboard: redesign and enhancements (#8089) 3 years ago
menusorter.lua [fix] MenuSorter: use orderedPairs for orphans (#6403) 4 years ago
otamanager.lua Check for update → Check for updates (#8027) 3 years ago
quickstart.lua Quick start guide: fix links to images (#8072) 3 years ago
renderimage.lua Update UI layout code to use new SVG icons 3 years ago
rendertext.lua Cache: Some more tweaks after #7624 3 years ago
screensaver.lua Screensaver: correct call of BookStatusWidget 3 years ago
size.lua [RFC] Pagination UI shenanigans (#7335) 3 years ago
timeval.lua Port ffiUtil.getTimestamp users to TimeVal:now() 3 years ago
translator.lua Translator: add "Translate from book language" option (#8094) 3 years ago
trapper.lua Revamp flash_ui handling, once more, with feeling ;) (#7262) 3 years ago
uimanager.lua Adds ScrollableContainer, to be used with tall widgets (#8299) 3 years ago
wikipedia.lua Unify LuaSocket usage (#7405) 3 years ago