Skip to content

Commit df8de85

Browse files
committed
fix: change quit shortcut to Ctrl+w
1 parent ba5b902 commit df8de85

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/tui/app.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ impl App<'_> {
444444
}
445445

446446
match key_event.code {
447-
KeyCode::Char('q') if key_event.modifiers == KeyModifiers::CONTROL => {
447+
KeyCode::Char('w') if key_event.modifiers == KeyModifiers::CONTROL => {
448448
self.events.send(AppEvent::Quit)
449449
}
450450
KeyCode::Char('n') | KeyCode::Char('N')

src/tui/widgets/shortcuts.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ impl ShortcutsWidget {
3333
Span::styled(": Navigate | ", theme.inactive_style()),
3434
Span::styled("Enter", theme.highlight_style()),
3535
Span::styled(": Select | ", theme.inactive_style()),
36-
Span::styled("^q", theme.highlight_style()),
36+
Span::styled("^w", theme.highlight_style()),
3737
Span::styled(": Quit ", theme.inactive_style()),
3838
])]);
3939

0 commit comments

Comments
 (0)