Fix incorrect escape codes generated when using the obsolete "normal" mouse protocol.
Fixes #105
This commit is contained in:
parent
9e512ff58a
commit
2519c49c02
1 changed files with 1 additions and 1 deletions
|
|
@ -58,5 +58,5 @@ def encode_mouse_event(tracking_mode, tracking_protocol, button, action, mods, x
|
|||
ans = bytes(ans)
|
||||
else:
|
||||
if x <= 223 and y <= 223:
|
||||
ans = bytearray([0o33, ord('['), cb + 32, x + 32, y + 32])
|
||||
ans = bytearray([0o33, ord('['), ord('M'), cb + 32, x + 32, y + 32])
|
||||
return ans
|
||||
|
|
|
|||
Loading…
Reference in a new issue