diff --git a/tui/src/float.rs b/tui/src/float.rs index 1a12d6b1..b4ab0344 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 fefe9b9a..52e0c50c 100644 --- a/tui/src/floating_text.rs +++ b/tui/src/floating_text.rs @@ -298,7 +298,7 @@ impl FloatContent for FloatingText { Shortcut::new("Scroll up", ["k", "Up"]), Shortcut::new("Scroll left", ["h", "Left"]), Shortcut::new("Scroll right", ["l", "Right"]), - Shortcut::new("Close window", ["Enter", "p", "d", "g"]), + Shortcut::new("Close window", ["Enter", "p", "q", "d", "g"]), ]), ) }