Restore behaviour of closing the pop-up with "q" (#634)

I am so used to pressing q to quit everything.
Let me know if this is not desired, because I remember using it a lot,
so if it was removed maybe there was a reason?

Co-authored-by: Chris Titus <contact@christitus.com>
This commit is contained in:
Afonso Franco F. 2024-09-30 21:12:16 +01:00 committed by GitHub
parent a9a678fc11
commit 8111649c8c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -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() =>
{

View File

@ -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"]),
]),
)
}