jag

showKey_rust

public

Shows what key you pressed last

Star0
Watch0

Commit 35923c649645

tarball

Jaglekon <58274093+Jaglekon@users.noreply.github.com>2026-09-23 22:05 UTC

1 file changed+4-1
added instructions to leave
Modified file: src/main.rs+4 additions−1 deletions
@@ -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