From 15fe50d272a5f548c7b9a0b8e79794fe1caf31bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Thu, 20 Oct 2022 15:03:17 +0200 Subject: Toggle the header meters with pound key Show/hide the header meters with the pound ('#') key. Useful in cases where the header is too large and occupies essential parts of the screen, especially in settings (see #1108). It is only stored as a runtime state, not a persistent setting; to remove the header permanently one can delete all active meters. --- Panel.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Panel.c') diff --git a/Panel.c b/Panel.c index 4ea03f66..8a4d0aec 100644 --- a/Panel.c +++ b/Panel.c @@ -443,6 +443,9 @@ bool Panel_onKey(Panel* this, int key) { HandlerResult Panel_selectByTyping(Panel* this, int ch) { int size = Panel_size(this); + if (ch == '#') + return IGNORED; + if (!this->eventHandlerState) this->eventHandlerState = xCalloc(100, sizeof(char)); char* buffer = this->eventHandlerState; -- cgit v1.2.3