From 5198638ea3d741c40da9f641f318760bb163663f Mon Sep 17 00:00:00 2001 From: Lars Henriksen Date: Fri, 19 Jun 2020 20:40:50 +0200 Subject: Fix configuration menu 'Quit' action Signed-off-by: Lars Henriksen Signed-off-by: Lukas Fleischer --- src/custom.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/custom.c b/src/custom.c index c699797..0e5e554 100644 --- a/src/custom.c +++ b/src/custom.c @@ -1201,7 +1201,10 @@ void custom_config_main(void) wmove(win[STA].p, 0, 0); wins_doupdate(); - while ((ch = keys_wgetch(win[KEY].p)) != 'q') { + while (1) { + ch = keys_wgetch(win[KEY].p); + if (keys_get_action(ch) == KEY_GENERIC_QUIT) + break; switch (ch) { case 'C': case 'c': -- cgit v1.2.3-70-g09d2