Skip to content

Commit

Permalink
fix(quit): allow to quit atac inside selected requests
Browse files Browse the repository at this point in the history
  • Loading branch information
NachoNievaG committed Apr 25, 2024
1 parent 87c71f3 commit 37736b8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/app/app_states.rs
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ impl AppState {
};

let mut base_events: Vec<AppEvent> = vec![
ExitApp(EventKeyBinding::new(vec![key_bindings.main_menu.exit, key!(ctrl-c)], "Exit", Some("Exit"))),
GoBackToMainMenu(EventKeyBinding::new(vec![key_bindings.generic.navigation.go_back], "Quit", Some("Quit"))),
Documentation(EventKeyBinding::new(vec![key_bindings.generic.display_help], "Display help", Some("Help"))),

Expand Down Expand Up @@ -571,4 +572,4 @@ impl App<'_> {
}
}
}
}
}
4 changes: 3 additions & 1 deletion src/app/files/key_bindings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ nest! {
},

pub request_selected: #[derive(Copy, Clone, Deserialize)] pub struct RequestSelected {
pub exit: KeyCombination,
pub param_next_tab: KeyCombination,
pub change_url: KeyCombination,
pub change_method: KeyCombination,
Expand Down Expand Up @@ -205,6 +206,7 @@ impl Default for KeyBindings {
},

request_selected: RequestSelected {
exit: key!(q),
param_next_tab: key!(tab),

change_url: key!(u),
Expand Down Expand Up @@ -307,4 +309,4 @@ pub fn unique_key_and_help(help: Span<'static>, key: Span<'static>) -> Vec<Span<
else {
vec![help, Span::raw(" "), key]
}
}
}

0 comments on commit 37736b8

Please sign in to comment.