From 0a4c6719470d1b7aab9429d9487ef53fac3cc469 Mon Sep 17 00:00:00 2001 From: Giuseppe Masino Date: Fri, 10 Aug 2018 16:45:42 +0200 Subject: [PATCH] Ignore keystrokes that are not associated with a keysym The system maps these to a keysym with value 0, causing ly to terminate. With this fix it shouldn't happen anymore Fixes #21 --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index 5a14fc7..e06721a 100644 --- a/src/main.c +++ b/src/main.c @@ -91,7 +91,7 @@ int main(void) set_current_field(form.form, form.fields[6]); form_driver(form.form, REQ_END_LINE); - while((input_key = wgetch(win.win))) + while((input_key = wgetch(win.win)) != ERR) { form.active = current_field(form.form);