From 0ea7a38c21d3c365afdd86f3b9a329938dc99b87 Mon Sep 17 00:00:00 2001 From: Stefan Holderbach Date: Thu, 19 May 2022 15:24:04 +0200 Subject: [PATCH] Move help menu to canonical `F1` binding (#5510) Currently the fully fledged help menu is bound to `Ctrl-Q`. Help is widely associated with `F1`. Before merging check that it is passed through on all platforms and terminal emulators --- crates/nu-cli/src/reedline_config.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/nu-cli/src/reedline_config.rs b/crates/nu-cli/src/reedline_config.rs index 59a5e1dff2..978e62d8ac 100644 --- a/crates/nu-cli/src/reedline_config.rs +++ b/crates/nu-cli/src/reedline_config.rs @@ -524,8 +524,8 @@ fn add_menu_keybindings(keybindings: &mut Keybindings) { // Help menu keybinding keybindings.add_binding( - KeyModifiers::CONTROL, - KeyCode::Char('q'), + KeyModifiers::NONE, + KeyCode::F(1), ReedlineEvent::Menu("help_menu".to_string()), ); }