aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul LeoNerd Evans <leonerd@leonerd.org.uk>2009-11-25 14:46:19 +0000
committerPaul LeoNerd Evans <leonerd@leonerd.org.uk>2009-11-25 14:46:19 +0000
commitbdc22b8b3d4cde7727a5d480c8457fc24182885d (patch)
tree8f01a9d0a92826297aef13022eef7304f46bddc4
parentade9d760d36d16a308096972ad1b91bd4aa3201e (diff)
downloadtermo-bdc22b8b3d4cde7727a5d480c8457fc24182885d.tar.gz
termo-bdc22b8b3d4cde7727a5d480c8457fc24182885d.tar.xz
termo-bdc22b8b3d4cde7727a5d480c8457fc24182885d.zip
Remember to zero key->modifiers for mouse events
-rw-r--r--driver-ti.c1
1 files changed, 1 insertions, 0 deletions
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;
}