pub fn handle_event(
ev: &Event,
app: &mut AppState,
query_tx: &UnboundedSender<QueryInput>,
details_tx: &UnboundedSender<PackageItem>,
preview_tx: &UnboundedSender<PackageItem>,
add_tx: &UnboundedSender<PackageItem>,
pkgb_tx: &UnboundedSender<PackageItem>,
comments_tx: &UnboundedSender<String>,
pkgb_check_tx: &UnboundedSender<PkgbuildCheckRequest>,
) -> boolExpand description
What: Dispatch a single terminal event (keyboard/mouse) and mutate the AppState.
Inputs:
ev: Terminal event (key or mouse)app: Mutable application statequery_tx: Channel to send search queriesdetails_tx: Channel to request package detailspreview_tx: Channel to request preview details for Recentadd_tx: Channel to enqueue items into the install listpkgb_tx: Channel to request PKGBUILD content for the current selectioncomments_tx: Channel to request AUR comments for the current selectionpkgb_check_tx: Channel to enqueue PKGBUILD check requests (must match a long-lived receiver, e.g. the runtime worker)
Output:
trueto signal the application should exit; otherwisefalse.
Details:
- Thin wrapper around
handle_event_with_pkgbuild_checks; callers must pass the samepkgb_check_txwired to the consumer as the interactive app uses. - Handles active modal interactions first (Alert/SystemUpdate/ConfirmInstall/ConfirmRemove/Help/News).
- Supports global shortcuts (help overlay, theme reload, exit, PKGBUILD viewer toggle, change sort).
- Delegates pane-specific handling to
search,recent, andinstallsubmodules.