Expand description
Utility functions for event handling.
Functionsยง
- byte_
index_ for_ char - What: Convert a character index to a byte index for slicing.
- char_
count - What: Return the number of Unicode scalar values (characters) in the input.
- find_
in_ install - What: Advance selection in the Install pane to the next/previous item matching the pane-find pattern.
- find_
in_ recent - What: Advance selection in the Recent pane to the next/previous match of the pane-find pattern.
- matches_
any - What: Check if a key event matches any chord in a list, handling Shift+char edge cases.
- maybe_
request_ news_ content - Request news content fetch if not cached or loading. Implements 0.5 second debounce - only requests after user stays on item for 0.5 seconds.
- move_
news_ selection - Move news selection by delta, keeping it in view.
- refresh_
downgrade_ details - What: Ensure details reflect the selected item in the Downgrade pane.
- refresh_
install_ details - What: Ensure details reflect the selected item in the Install pane.
- refresh_
remove_ details - What: Ensure details reflect the selected item in the Remove pane.
- refresh_
selected_ details - What: Ensure details reflect the currently selected result.
- update_
news_ url - Synchronize details URL and content with currently selected news item. Also triggers content fetching if channel is provided and content is not cached.