Skip to content

feat: add support and tests for mouse auxiliary buttons (AUX1 to AUX8) - #6044

Open
rajveer3x wants to merge 1 commit into
xtermjs:masterfrom
rajveer3x:feature/support-aux-mouse-buttons
Open

feat: add support and tests for mouse auxiliary buttons (AUX1 to AUX8)#6044
rajveer3x wants to merge 1 commit into
xtermjs:masterfrom
rajveer3x:feature/support-aux-mouse-buttons

Conversation

@rajveer3x

Copy link
Copy Markdown

Adds support for auxiliary mouse buttons (buttons 8–15, such as browser back/forward buttons) and implements the corresponding unit tests to resolve the existing TODO in MouseService.test.ts.

Changes:

MouseService.ts: Mapped ev.button values 3-10 to CoreMouseButton.AUX1-AUX8, and added ev.buttons bitmask checking for drag/move events.
MouseService.test.ts: Added test assertions to cover AUX buttons under DEFAULT, SGR, and SGR_PIXELS protocols.
All unit tests pass and code style is clean. Let me know if you need any adjustments!

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