Remember to zero key->modifiers for mouse events

This commit is contained in:
Paul LeoNerd Evans 2009-11-25 14:46:19 +00:00
parent ade9d760d3
commit bdc22b8b3d
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}