Fix input handling
When app_process_termo_event() returns false, it always means to beep, not to quit the application.
This commit is contained in:
parent
9c16ab4136
commit
3c09a16a02
2
nncmpp.c
2
nncmpp.c
|
@ -3428,7 +3428,7 @@ app_on_key_timer (void *user_data)
|
||||||
termo_key_t event;
|
termo_key_t event;
|
||||||
if (termo_getkey_force (g.tk, &event) == TERMO_RES_KEY)
|
if (termo_getkey_force (g.tk, &event) == TERMO_RES_KEY)
|
||||||
if (!app_process_termo_event (&event))
|
if (!app_process_termo_event (&event))
|
||||||
app_quit (); // presumably an ESC, questionable
|
beep ();
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in New Issue