mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-24 06:01:55 +00:00
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:
parent
a9a678fc11
commit
8111649c8c
|
@ -60,6 +60,7 @@ impl Float {
|
||||||
| KeyCode::Char('p')
|
| KeyCode::Char('p')
|
||||||
| KeyCode::Char('d')
|
| KeyCode::Char('d')
|
||||||
| KeyCode::Char('g')
|
| KeyCode::Char('g')
|
||||||
|
| KeyCode::Char('q')
|
||||||
| KeyCode::Esc
|
| KeyCode::Esc
|
||||||
if self.content.is_finished() =>
|
if self.content.is_finished() =>
|
||||||
{
|
{
|
||||||
|
|
|
@ -298,7 +298,7 @@ impl FloatContent for FloatingText {
|
||||||
Shortcut::new("Scroll up", ["k", "Up"]),
|
Shortcut::new("Scroll up", ["k", "Up"]),
|
||||||
Shortcut::new("Scroll left", ["h", "Left"]),
|
Shortcut::new("Scroll left", ["h", "Left"]),
|
||||||
Shortcut::new("Scroll right", ["l", "Right"]),
|
Shortcut::new("Scroll right", ["l", "Right"]),
|
||||||
Shortcut::new("Close window", ["Enter", "p", "d", "g"]),
|
Shortcut::new("Close window", ["Enter", "p", "q", "d", "g"]),
|
||||||
]),
|
]),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user