diff --git a/Readme.md b/Readme.md index b5ac9ad..85c55dd 100644 --- a/Readme.md +++ b/Readme.md @@ -61,7 +61,7 @@ This will produce an executable file at `target/release/bluetui` that you can co `esc`: Dismiss the help pop-up. -`ctrl+c`: Quit the app. +`ctrl+c` or `q`: Quit the app. ### Adapters diff --git a/src/handler.rs b/src/handler.rs index c5f0ab5..8782ff0 100644 --- a/src/handler.rs +++ b/src/handler.rs @@ -65,6 +65,10 @@ pub async fn handle_key_events( } } + KeyCode::Char('q') => { + app.quit(); + } + // Show help KeyCode::Char('?') => { app.focused_block = FocusedBlock::Help; diff --git a/src/help.rs b/src/help.rs index 8dddc83..2deb498 100644 --- a/src/help.rs +++ b/src/help.rs @@ -44,7 +44,7 @@ impl Help { "Start/Stop scanning", ), (Cell::from("?").bold(), "Show help"), - (Cell::from("ctrl+c").bold(), "Quit"), + (Cell::from("ctrl+c or q").bold(), "Quit"), (Cell::from(""), ""), ( Cell::from("## Adapters").style(Style::new().bold().fg(Color::Yellow)),