Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(quit): allow to quit atac inside selected requests #50

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/app/app_states.rs
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ impl AppState {
};

let mut base_events: Vec<AppEvent> = vec![
ExitApp(EventKeyBinding::new(vec![key_bindings.main_menu.exit], "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 @@ -640,4 +641,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]
}
}
}