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/widget
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
..
container Adds ScrollableContainer, to be used with tall widgets (#8299) 3 years ago
bboxwidget.lua Add support for physical button for page crop (#6091) 4 years ago
bookstatuswidget.lua BookStatusWidget: fix status toggle (#8329) 3 years ago
button.lua Adds ScrollableContainer, to be used with tall widgets (#8299) 3 years ago
buttondialog.lua Many widgets: similar size in portrait and landscape (#8238) 3 years ago
buttondialogtitle.lua Many widgets: similar size in portrait and landscape (#8238) 3 years ago
buttonprogresswidget.lua [UX] Use a full-width plus for buttons paired with a unicode minus (#7018) 3 years ago
buttontable.lua Many widgets: similar size in portrait and landscape (#8238) 3 years ago
checkbutton.lua Checkbutton: optimize callback (#8134) 3 years ago
checkmark.lua CheckButton: accurate vertical alignment (#8083) 3 years ago
closebutton.lua [RTL UI] update widgets and apps for UI mirroring 5 years ago
configdialog.lua Spinwidgets: can now get width or width_factor (#8269) 3 years ago
confirmbox.lua Many widgets: similar size in portrait and landscape (#8238) 3 years ago
datetimewidget.lua DateTimeWidget: replaces DateWidget and TimeWidget (#8240) 3 years ago
dictquicklookup.lua readerhighlight: remove selected_word and use selected_text everywhere 3 years ago
doublespinwidget.lua Spinwidgets: can now get width or width_factor (#8269) 3 years ago
eventlistener.lua Revamp flash_ui handling, once more, with feeling ;) (#7262) 3 years ago
filechooser.lua Standardize select/choose to choose (#8128) 3 years ago
fixedtextwidget.lua TextWidget: small refactoring, better handle max_width (#5503) 5 years ago
focusmanager.lua [feat] FocusManager: wrap around horizontally (#6315) 4 years ago
footnotewidget.lua Minor Input & TimeVal cleanups 3 years ago
frontlightwidget.lua [frontlight, kobo, cervantes] Remove auto_warmth (#8154) 3 years ago
horizontalgroup.lua Tame some ButtonTable users into re-using Buttontable instances if possible (#7166) 3 years ago
horizontalscrollbar.lua Adds ScrollableContainer, to be used with tall widgets (#8299) 3 years ago
horizontalspan.lua cleanup: expand tab to 4 spaces 10 years ago
htmlboxwidget.lua The great Input/GestureDetector/TimeVal spring cleanup (a.k.a., a saner main loop) (#7415) 3 years ago
iconbutton.lua flash_ui: Workaround potential EPDC races (#7332) 3 years ago
iconwidget.lua Page Overlap: Fix rectangle computation and arrow mode (#7269) 3 years ago
imageviewer.lua Screenshoter: options to View and Delete after screenshot (#8050) 3 years ago
imagewidget.lua Cache: Some more tweaks after #7624 3 years ago
infomessage.lua Revert "Hyphenation: add custom hyphenation rules (#7746)" (#7785) 3 years ago
inputdialog.lua CenterContainer: options to handle larger content (#8277) 3 years ago
inputtext.lua Many widgets: similar size in portrait and landscape (#8238) 3 years ago
keyboardlayoutdialog.lua Adds ScrollableContainer, to be used with tall widgets (#8299) 3 years ago
keyvaluepage.lua [fix, lang] KeyValuePage: make "go to page" string translateable (#8059) 3 years ago
linewidget.lua [chore] Convert a couple more todos (#5267) 5 years ago
linkbox.lua Revert "Hyphenation: add custom hyphenation rules (#7746)" (#7785) 3 years ago
listview.lua [RTL UI] update widgets and apps for UI mirroring 5 years ago
logindialog.lua Floor dimension computations (mul/div). (#6264) 4 years ago
menu.lua Menu widget: adapt font size of shrunken items (#8340) 3 years ago
multiconfirmbox.lua Many widgets: similar size in portrait and landscape (#8238) 3 years ago
multiinputdialog.lua CenterContainer: options to handle larger content (#8277) 3 years ago
naturallightwidget.lua Revert "Hyphenation: add custom hyphenation rules (#7746)" (#7785) 3 years ago
networksetting.lua Fix syntax 3 years ago
notification.lua Many widgets: similar size in portrait and landscape (#8238) 3 years ago
numberpickerwidget.lua SpinWidget: similar size in portrait and landscape (#8226) 3 years ago
openwithdialog.lua Checkbutton: optimize callback (#8134) 3 years ago
overlapgroup.lua Statistics: new Calendar view (#5854) 4 years ago
pathchooser.lua Standardize select/choose to choose (#8128) 3 years ago
physicalkeyboard.lua Various blitting related cleanups (#4789) 5 years ago
progresswidget.lua ProgressWidget: Simplify painting logic. 3 years ago
qrmessage.lua Revert "Hyphenation: add custom hyphenation rules (#7746)" (#7785) 3 years ago
qrwidget.lua Qrcode support (#6844) 4 years ago
radiobutton.lua ReaderHighlight: allow updating a highlight drawing style (#8323) 3 years ago
radiobuttontable.lua Open with: add Text Editor plugin 4 years ago
radiobuttonwidget.lua [chore] RadioButtonWidget: remove unused "Use default" string (#8354) 3 years ago
rectspan.lua cleanup: expand tab to 4 spaces 10 years ago
screensaverwidget.lua ScreenSaver: Saner close behavior (#7929) 3 years ago
screenshoter.lua Screenshoter: allow reset default folder from menu (#8227) 3 years ago
scrollhtmlwidget.lua Button: Better handling of translucent MovableContainer (#7223) 3 years ago
scrolltextwidget.lua Revamp flash_ui handling, once more, with feeling ;) (#7262) 3 years ago
skimtowidget.lua Many widgets: similar size in portrait and landscape (#8238) 3 years ago
sortwidget.lua [fix, lang] SortWidget: make "go to page" string translateable (#8061) 3 years ago
spinwidget.lua Spinwidgets: can now get width or width_factor (#8269) 3 years ago
textboxwidget.lua TextBoxWidget: Unbreak Wikipedia (bis) (#8298) 3 years ago
textviewer.lua InputText: fix hold handling, add clipboard empty hint (#8091) 3 years ago
textwidget.lua Fix a few possible crashes 3 years ago
toggleswitch.lua ConfigDialog: remove uneeded support for muliple events 3 years ago
touchmenu.lua A few small design fixes (#7933) 3 years ago
trapwidget.lua Revert "Hyphenation: add custom hyphenation rules (#7746)" (#7785) 3 years ago
verticalgroup.lua Tame some ButtonTable users into re-using Buttontable instances if possible (#7166) 3 years ago
verticalscrollbar.lua Text/HTML widgets: allow scrolling with the scrollbar 4 years ago
verticalspan.lua cleanup: expand tab to 4 spaces 10 years ago
virtualkeyboard.lua Virtualkeyboard: allow grey'ing the legacy umlaut mode key (#8276) 3 years ago
widget.lua doc: fix document build 8 years ago