pub(crate) fn handle_event(app: &mut App, ev: Event, path: &str)
Dispatch one terminal event by mode (edit / command prompt / normal).