Skip to content

Commit

Permalink
Get back note about Esc is bad choice for binding
Browse files Browse the repository at this point in the history
Refs: #50
  • Loading branch information
azat committed Apr 4, 2024
1 parent dddb7e3 commit 4694fc0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/view/navigation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 4694fc0

Please sign in to comment.