Skip to content

bugfix mouse button decoding - #406

Merged
jquast merged 2 commits into
masterfrom
jq/legacy-mouse-release-events
Aug 30, 2026
Merged

jquast merged 2 commits into
masterfrom
jq/legacy-mouse-release-events

Conversation

@jquast

@jquast jquast commented Aug 30, 2026 •

Copy link
Copy Markdown
Owner
  • bugfix: "legacy mouse" event names and button values, mouse release events returned by ~Terminal.inkey were always MOUSE_LEFT_RELEASED for all buttons, they now report MOUSE_RELEASED.
  • bugfix: Mouse buttons 6 through 11 were erroneously decoded as left, middle, or right instead of MOUSE_BUTTON_6 through MOUSE_BUTTON_11.

@codspeed

codspeed Bot commented Aug 30, 2026 •

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 31 untouched benchmarks


Comparing jq/legacy-mouse-release-events (3272be7) with master (cb530f1)

Open in CodSpeed

@codecov

codecov Bot commented Aug 30, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.40%. Comparing base (cb530f1) to head (3272be7).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #406   +/-   ##
=======================================
  Coverage   97.40%   97.40%           
=======================================
  Files          13       13           
  Lines        3888     3888           
  Branches      694      693    -1     
=======================================
  Hits         3787     3787           
  Misses         82       82           
  Partials       19       19           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jquast jquast changed the title Change legacy mouse button decoding Improve legacy mouse button decoding Aug 30, 2026
@jquast
jquast force-pushed the jq/legacy-mouse-release-events branch from 47b12e7 to b78c081 Compare August 30, 2026 18:27
@jquast
jquast marked this pull request as ready for review August 30, 2026 18:27
@jquast
jquast force-pushed the jq/legacy-mouse-release-events branch from b78c081 to c608ef6 Compare August 30, 2026 18:27
* bugfix: :ref:`legacy mouse` event names and button values, :ghpull:`406`.
* bugfix: SGR mouse buttons 6 through 11 were decoded as left, middle, or right instead of
  ``MOUSE_BUTTON_6`` through ``MOUSE_BUTTON_11``, :ghpull:`406`.
@jquast
jquast force-pushed the jq/legacy-mouse-release-events branch from c608ef6 to 1ad12a1 Compare August 30, 2026 18:32
@jquast jquast changed the title Improve legacy mouse button decoding bugfix mouse button decoding Aug 30, 2026
@jquast
jquast merged commit 02bbd00 into master Aug 30, 2026
16 checks passed
@jquast
jquast deleted the jq/legacy-mouse-release-events branch August 30, 2026 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant