summaryrefslogtreecommitdiffstats
path: root/Panel.c
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2022-10-20 15:03:17 +0200
committerBenBE <BenBE@geshi.org>2022-10-22 17:42:19 +0200
commit15fe50d272a5f548c7b9a0b8e79794fe1caf31bc (patch)
treea27749d593aacd3d75a22c1154c354cc8958d2a9 /Panel.c
parentd83948ed09039864cdaf6066a1bd64476211ecaa (diff)
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.
Diffstat (limited to 'Panel.c')
-rw-r--r--Panel.c3
1 files changed, 3 insertions, 0 deletions
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;

© 2014-2024 Faster IT GmbH | imprint | privacy policy