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>,
) -> 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 selection
Output:
trueto signal the application should exit; otherwisefalse.
Details:
- 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.