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
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
..
data Clarify our OOP semantics across the codebase (#9586) 2 years ago
elements Keyboards/Menu: Lazy-load the layout-specific menu (#9584) 2 years ago
message Clarify our OOP semantics across the codebase (#9586) 2 years ago
network Clarify our OOP semantics across the codebase (#9586) 2 years ago
plugin Clarify our OOP semantics across the codebase (#9586) 2 years ago
widget UIManager: Fix handling of toast widgets in sendEvent (#9617) 2 years ago
bidi.lua Bidi: keep invert() generic, handle settings in ReaderView (#8876) 2 years ago
downloadmgr.lua CloudStorage: remove cloudmgr (#9532) 2 years ago
event.lua Assorted bag'o tweaks & fixes (#9569) 2 years ago
font.lua Keyboard: add Bengali Probhat layout (#8887) 2 years ago
geometry.lua ImageViewer: Followup to #9529 (#9544) 2 years ago
gesturerange.lua [feat] Replace TimeVal (RIP) with time, fixed point time seconds (#8999) 2 years ago
hook_container.lua Clarify our OOP semantics across the codebase (#9586) 2 years ago
language.lua [i18n] Enable more languages (#9082) 2 years ago
menusorter.lua [fix] MenuSorter: use orderedPairs for orphans (#6403) 4 years ago
otamanager.lua Misc: Unify error logging on network errors (#9523) 2 years ago
quickstart.lua Quick start guide: fix links to images (#8072) 3 years ago
renderimage.lua Misc: Get rid of the legacy defaults.lua globals (#9546) 2 years ago
rendertext.lua Clarify our OOP semantics across the codebase (#9586) 2 years ago
screensaver.lua ScreenSaver: When adding an overlay message to a top message, position 2 years ago
size.lua [RFC] Pagination UI shenanigans (#7335) 3 years ago
time.lua [feat] Replace TimeVal (RIP) with time, fixed point time seconds (#8999) 2 years ago
timeval.lua TimeVal: Do a runtime check for CLOCK_BOOTTIME support (#8832) 2 years ago
translator.lua Misc: Unify error logging on network errors (#9523) 2 years ago
trapper.lua Logger: Use serpent instead of dump (#9588) 2 years ago
uimanager.lua UIManager: Fix handling of toast widgets in sendEvent (#9617) 2 years ago
wikipedia.lua Logger: Use serpent instead of dump (#9588) 2 years ago