Skip to content

Commit

Permalink
Restore behaviour of closing the pop-up with "q"
Browse files Browse the repository at this point in the history
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?
  • Loading branch information
afonsofrancof committed Sep 23, 2024
1 parent aaa61cb commit 035e463
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions tui/src/float.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() =>
{
Expand Down
2 changes: 1 addition & 1 deletion tui/src/floating_text.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
],
}
}
Expand Down

0 comments on commit 035e463

Please sign in to comment.