mirror of
https://github.com/ClementTsang/bottom.git
synced 2026-09-22 02:25:39 +00:00
other: treat uppercase Q as quit shortcut (#2074)
This commit is contained in:
+1
-1
@@ -57,7 +57,7 @@ pub fn handle_key_event_or_break(
|
||||
|
||||
if event.modifiers.is_empty() {
|
||||
match event.code {
|
||||
KeyCode::Char('q') if !app.is_in_any_search() => return true,
|
||||
KeyCode::Char('q' | 'Q') if !app.is_in_any_search() => return true,
|
||||
KeyCode::End => app.skip_to_last(),
|
||||
KeyCode::Home => app.skip_to_first(),
|
||||
KeyCode::Up => app.on_up_key(),
|
||||
|
||||
Reference in New Issue
Block a user