Shows what key you pressed last
Commit 35923c649645
tarball1 file changed+4-1
@@ -56,8 +56,11 @@ impl Widget for &ShowKey {
5656
5757
let title = Line::from(" Show Key ".bold());5858
59
+ let bottom = Line::from(" Exit <Esc Esc> ");60
+5961
let block = Block::bordered()6062
.title(title.centered())63
+ .title_bottom(bottom.centered())6164
.border_set(border::ROUNDED);6265
6366
let block_area = area.centered(@@ -84,7 +87,7 @@ impl Widget for &ShowKey {
8487
8588
8689
)87
- .unwrap_or(vec![Span::from("Fuck you")])90
+ .unwrap_or_default()8891
);8992
9093
let pressed_area = block