diff --git a/crates/nu-explore/src/pager/mod.rs b/crates/nu-explore/src/pager/mod.rs index 59f843c195..d2cc8e18de 100644 --- a/crates/nu-explore/src/pager/mod.rs +++ b/crates/nu-explore/src/pager/mod.rs @@ -781,14 +781,13 @@ fn handle_event( } fn handle_exit_key_event(key: &KeyEvent) -> bool { - matches!( - key, - KeyEvent { - code: KeyCode::Char('z'), - modifiers: KeyModifiers::CONTROL, - .. + if key.modifiers == KeyModifiers::CONTROL { + // these are all common things people might try, might as well handle them all + if let KeyCode::Char('c') | KeyCode::Char('d') | KeyCode::Char('q') = key.code { + return true; } - ) + } + false } fn handle_general_key_events1(