From bdc22b8b3d4cde7727a5d480c8457fc24182885d Mon Sep 17 00:00:00 2001 From: Paul LeoNerd Evans Date: Wed, 25 Nov 2009 14:46:19 +0000 Subject: Remember to zero key->modifiers for mouse events --- driver-ti.c | 1 + 1 file changed, 1 insertion(+) diff --git a/driver-ti.c b/driver-ti.c index c8b1336..3d37e1a 100644 --- a/driver-ti.c +++ b/driver-ti.c @@ -318,6 +318,7 @@ static TermKeyResult peekkey(TermKey *tk, void *info, TermKeyKey *key, int force key->code.mouse.buttons = CHARAT(pos+0) - 0x20; key->code.mouse.col = CHARAT(pos+1) - 0x20; key->code.mouse.line = CHARAT(pos+2) - 0x20; + key->modifiers = 0; *nbytep = pos+3; return TERMKEY_RES_KEY; } -- cgit v1.2.3-70-g09d2