Handle mouse buttons 6/7 (often used for horizontal scrolling)

This commit is contained in:
Paul "LeoNerd" Evans 2023-07-31 13:32:55 +01:00 committed by zeertzjq
parent ffe96c6c1c
commit b4ef913400
1 changed files with 2 additions and 0 deletions

View File

@ -241,6 +241,8 @@ TermKeyResult termkey_interpret_mouse(TermKey *tk, const TermKeyKey *key, TermKe
case 64:
case 65:
case 66:
case 67:
*event = drag ? TERMKEY_MOUSE_DRAG : TERMKEY_MOUSE_PRESS;
btn = code + 4 - 64;
break;