diff --git a/tui/src/float.rs b/tui/src/float.rs index 1f5b56c0a..9bb4d907d 100644 --- a/tui/src/float.rs +++ b/tui/src/float.rs @@ -60,6 +60,7 @@ impl Float { | KeyCode::Char('p') | KeyCode::Char('d') | KeyCode::Char('g') + | KeyCode::Char('q') | KeyCode::Esc if self.content.is_finished() => { diff --git a/tui/src/floating_text.rs b/tui/src/floating_text.rs index 2cd638240..ee4700aa9 100644 --- a/tui/src/floating_text.rs +++ b/tui/src/floating_text.rs @@ -301,7 +301,7 @@ impl FloatContent for FloatingText { Shortcut::new(vec!["k", "Up"], "Scroll up"), Shortcut::new(vec!["h", "Left"], "Scroll left"), Shortcut::new(vec!["l", "Right"], "Scroll right"), - Shortcut::new(vec!["Enter", "p", "d", "g"], "Close window"), + Shortcut::new(vec!["Enter", "p", "q", "d", "g"], "Close window"), ], } }