Skip to content

Commit

Permalink
Get back Esc binding
Browse files Browse the repository at this point in the history
Apparently after switching to termion (from default ncurses) backend it
fully functional, or maybe that was a different terminal... For now I
checked alacritty and konsole and both are OK.

Refs: #50
  • Loading branch information
azat committed Apr 4, 2024
1 parent fd22ab0 commit 88ee8c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Documentation/FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ highly not recommended), you can use `chdig --connection prod`.
| | | CPU Server Flamegraph in speedscope |
| | **~** | chdig debug console |
| | **q** | Back/Quit |
| | **Esc** | Back/Quit |
| | **Q** | Quit forcefully |
| | **Backspace** | Back |
| | **p** | Toggle pause |
Expand Down
2 changes: 1 addition & 1 deletion src/view/navigation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +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", Key::Esc, |siv| siv.pop_ui(true));
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 88ee8c7

Please sign in to comment.