Skip to content

Commit 31bae3d

Browse files
committed
Binds <Esc> to quit in contexts where q or ctrl+c is accepted as quit
1 parent b6427df commit 31bae3d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ This will produce an executable file at `target/release/bluetui` that you can co
7777

7878
`s`: Start/Stop scanning.
7979

80-
`ctrl+c` or `q`: Quit the app.
80+
`ctrl+c` or `q` or `<Esc>`: Quit the app.
8181

8282
### Adapters
8383

src/handler.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ pub async fn handle_key_events(
264264
app.quit();
265265
}
266266

267-
KeyCode::Char('q') => {
267+
KeyCode::Char('q') | KeyCode::Esc => {
268268
app.quit();
269269
}
270270

0 commit comments

Comments
 (0)