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
NiLuJe 6ac7a0cd40
UIManager: Fix handling of toast widgets in sendEvent (#9617)
The ultimate goal is for toast widgets (i.e., Notification when flagged as such) to:
  * Not stop event propagation
  * Close themselves when the event was emitted by user input.

Instead of doing event filtering in UIManager, we simply overload the onGesture & onKey* handlers in Notification to do just that, and just make sure UIManager will *send* those events to toasts, but without affecting the usual semantics of top widget selection and event propagation (which is as simple as just calling handleEvent on them unchecked ;p).

Thanks to @poire-z for the brainstorming in https://github.com/koreader/koreader/issues/9594 ;).

This also happens to fix a bug in which we might have looped on the top widget twice, because of an array vs. hash mishap ;).
2 years ago
..
container Clarify our OOP semantics across the codebase (#9586) 2 years ago
bboxwidget.lua Clarify our OOP semantics across the codebase (#9586) 2 years ago
bookmapwidget.lua Clarify our OOP semantics across the codebase (#9586) 2 years ago
bookstatuswidget.lua Clarify our OOP semantics across the codebase (#9586) 2 years ago
button.lua Clarify our OOP semantics across the codebase (#9586) 2 years ago
buttondialog.lua Clarify our OOP semantics across the codebase (#9586) 2 years ago
buttondialogtitle.lua Clarify our OOP semantics across the codebase (#9586) 2 years ago
buttonprogresswidget.lua Clarify our OOP semantics across the codebase (#9586) 2 years ago
buttontable.lua Clarify our OOP semantics across the codebase (#9586) 2 years ago
checkbutton.lua Clarify our OOP semantics across the codebase (#9586) 2 years ago
checkmark.lua Clarify our OOP semantics across the codebase (#9586) 2 years ago
closebutton.lua Clarify our OOP semantics across the codebase (#9586) 2 years ago
configdialog.lua Logger: Use serpent instead of dump (#9588) 2 years ago
confirmbox.lua Clarify our OOP semantics across the codebase (#9586) 2 years ago
datetimewidget.lua Misc: Get rid of the legacy defaults.lua globals (#9546) 2 years ago
dictquicklookup.lua DictQuickLookup: The window_list array needs to be a static class member 2 years ago
doublespinwidget.lua Clarify our OOP semantics across the codebase (#9586) 2 years ago
eventlistener.lua Clarify our OOP semantics across the codebase (#9586) 2 years ago
filechooser.lua Clarify our OOP semantics across the codebase (#9586) 2 years ago
fixedtextwidget.lua Clarify our OOP semantics across the codebase (#9586) 2 years ago
focusmanager.lua Clarify our OOP semantics across the codebase (#9586) 2 years ago
footnotewidget.lua Clarify our OOP semantics across the codebase (#9586) 2 years ago
frontlightwidget.lua Clarify our OOP semantics across the codebase (#9586) 2 years ago
horizontalgroup.lua Clarify our OOP semantics across the codebase (#9586) 2 years ago
horizontalscrollbar.lua Clarify our OOP semantics across the codebase (#9586) 2 years ago
horizontalspan.lua Clarify our OOP semantics across the codebase (#9586) 2 years ago
htmlboxwidget.lua Clarify our OOP semantics across the codebase (#9586) 2 years ago
iconbutton.lua Clarify our OOP semantics across the codebase (#9586) 2 years ago
iconwidget.lua Misc: Get rid of the legacy defaults.lua globals (#9546) 2 years ago
imageviewer.lua Clarify our OOP semantics across the codebase (#9586) 2 years ago
imagewidget.lua Clarify our OOP semantics across the codebase (#9586) 2 years ago
infomessage.lua Clarify our OOP semantics across the codebase (#9586) 2 years ago
inputdialog.lua Clarify our OOP semantics across the codebase (#9586) 2 years ago
inputtext.lua Clarify our OOP semantics across the codebase (#9586) 2 years ago
keyboardlayoutdialog.lua Clarify our OOP semantics across the codebase (#9586) 2 years ago
keyvaluepage.lua Clarify our OOP semantics across the codebase (#9586) 2 years ago
linewidget.lua Clarify our OOP semantics across the codebase (#9586) 2 years ago
linkbox.lua Clarify our OOP semantics across the codebase (#9586) 2 years ago
listview.lua Clarify our OOP semantics across the codebase (#9586) 2 years ago
logindialog.lua InputDialog: insert TitleBar (#8695) 2 years ago
menu.lua Clarify our OOP semantics across the codebase (#9586) 2 years ago
multiconfirmbox.lua Clarify our OOP semantics across the codebase (#9586) 2 years ago
multiinputdialog.lua MultiDialog: Fix an extremely nasty API misuse 2 years ago
naturallightwidget.lua Clarify our OOP semantics across the codebase (#9586) 2 years ago
networksetting.lua Clarify our OOP semantics across the codebase (#9586) 2 years ago
notification.lua UIManager: Fix handling of toast widgets in sendEvent (#9617) 2 years ago
numberpickerwidget.lua Misc: Get rid of the legacy defaults.lua globals (#9546) 2 years ago
openwithdialog.lua Non-touch: highlight support (#8877) 2 years ago
overlapgroup.lua Clarify our OOP semantics across the codebase (#9586) 2 years ago
pagebrowserwidget.lua Clarify our OOP semantics across the codebase (#9586) 2 years ago
pathchooser.lua PathChooser: add creating folder (#9354) 2 years ago
physicalkeyboard.lua Clarify our OOP semantics across the codebase (#9586) 2 years ago
progresswidget.lua Clarify our OOP semantics across the codebase (#9586) 2 years ago
qrmessage.lua Clarify our OOP semantics across the codebase (#9586) 2 years ago
qrwidget.lua Qrcode support (#6844) 4 years ago
radiobutton.lua Clarify our OOP semantics across the codebase (#9586) 2 years ago
radiobuttontable.lua Clarify our OOP semantics across the codebase (#9586) 2 years ago
radiobuttonwidget.lua Clarify our OOP semantics across the codebase (#9586) 2 years ago
radiomark.lua Clarify our OOP semantics across the codebase (#9586) 2 years ago
rectspan.lua Clarify our OOP semantics across the codebase (#9586) 2 years ago
screensaverwidget.lua Clarify our OOP semantics across the codebase (#9586) 2 years ago
screenshoter.lua Clarify our OOP semantics across the codebase (#9586) 2 years ago
scrollhtmlwidget.lua Clarify our OOP semantics across the codebase (#9586) 2 years ago
scrolltextwidget.lua Clarify our OOP semantics across the codebase (#9586) 2 years ago
skimtowidget.lua Clarify our OOP semantics across the codebase (#9586) 2 years ago
sortwidget.lua Clarify our OOP semantics across the codebase (#9586) 2 years ago
spinwidget.lua Clarify our OOP semantics across the codebase (#9586) 2 years ago
textboxwidget.lua Clarify our OOP semantics across the codebase (#9586) 2 years ago
textviewer.lua Clarify our OOP semantics across the codebase (#9586) 2 years ago
textwidget.lua Clarify our OOP semantics across the codebase (#9586) 2 years ago
titlebar.lua Clarify our OOP semantics across the codebase (#9586) 2 years ago
toggleswitch.lua Clarify our OOP semantics across the codebase (#9586) 2 years ago
touchmenu.lua Clarify our OOP semantics across the codebase (#9586) 2 years ago
trapwidget.lua Clarify our OOP semantics across the codebase (#9586) 2 years ago
verticalgroup.lua Clarify our OOP semantics across the codebase (#9586) 2 years ago
verticalscrollbar.lua Clarify our OOP semantics across the codebase (#9586) 2 years ago
verticalspan.lua Clarify our OOP semantics across the codebase (#9586) 2 years ago
virtualkeyboard.lua Clarify our OOP semantics across the codebase (#9586) 2 years ago
widget.lua Clarify our OOP semantics across the codebase (#9586) 2 years ago