From ba5404d93e40e61176ffb150b66ddc3b349603a7 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Thu, 26 Nov 2009 22:26:51 +0000 Subject: [PATCH] Continue rather than returning if not a mouse key, to avoid hanging on any function key... --- tty-keys.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tty-keys.c b/tty-keys.c index a64c29b0..8f90b6ec 100644 --- a/tty-keys.c +++ b/tty-keys.c @@ -467,8 +467,7 @@ tty_keys_next(struct tty *tty) key = KEYC_MOUSE; goto handle_key; case -1: /* no, or not valid */ - evbuffer_drain(tty->event->input, size); - return (1); + break; case 1: /* partial */ goto partial_key; }