aboutsummaryrefslogtreecommitdiff
path: root/handlers.ha
diff options
context:
space:
mode:
Diffstat (limited to 'handlers.ha')
-rw-r--r--handlers.ha7
1 files changed, 7 insertions, 0 deletions
diff --git a/handlers.ha b/handlers.ha
index c4f28db..fb6837e 100644
--- a/handlers.ha
+++ b/handlers.ha
@@ -43,6 +43,13 @@ fn runehandler(l: *widget::widget, r: libtui::key) bool = {
list::pagedown(l);
case 'u' =>
list::pageup(l);
+ case 'h' =>
+ if (msg != "") {
+ libtui::suspend(&l.widget.ui);
+ fmt::println(msg)!;
+ libtui::resume(&l.widget.ui);
+ return true;
+ };
case 'l' =>
// to print properly suspend the ui, print, then resume
libtui::suspend(&l.widget.ui);