From 4694fc04c6cfbc23ac1aede809d07b922a49fcf8 Mon Sep 17 00:00:00 2001 From: Azat Khuzhin Date: Thu, 4 Apr 2024 21:13:13 +0200 Subject: [PATCH] Get back note about Esc is bad choice for binding Refs: https://github.com/azat/chdig/issues/50 --- src/view/navigation.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/view/navigation.rs b/src/view/navigation.rs index 6fd3e30..27a9f28 100644 --- a/src/view/navigation.rs +++ b/src/view/navigation.rs @@ -294,6 +294,7 @@ impl Navigation for Cursive { '~', toggle_flexi_logger_debug_console, ); + // NOTE: Do not bind to Esc, since this breaks other bindings (Home/End/...) context.add_global_action(self, "Back/Quit", 'q', |siv| siv.pop_ui(true)); context.add_global_action(self, "Quit forcefully", 'Q', |siv| siv.quit()); context.add_global_action(self, "Back", Key::Backspace, |siv| siv.pop_ui(false));