Skip to content

fix: handle middle mouse button on click menu item#9772

Closed
H4ad wants to merge 1 commit intoSigNoz:mainfrom
H4ad:perf/chart
Closed

fix: handle middle mouse button on click menu item#9772
H4ad wants to merge 1 commit intoSigNoz:mainfrom
H4ad:perf/chart

Conversation

@H4ad
Copy link
Copy Markdown
Contributor

@H4ad H4ad commented Dec 4, 2025

📄 Summary

Add support to open the new tab not only via CTRL but also via middle click of the button, like URL link.


✅ Changes

  • Feature: Brief description
  • Bug fix: Brief description

🧪 How to Test

  1. Open the initial page
  2. Middle click in any menu item

🔍 Related Issues

I found no related issue.


📸 Screenshots / Screen Recording (if applicable / mandatory for UI related changes)

No screenshots since this change via click.


📋 Checklist

  • Dev Review
  • Test cases added (Unit/ Integration / E2E)
  • Manually tested the changes

👀 Notes for Reviewers

Inspired by https://www.linkedin.com/feed/update/urn:li:activity:7400183369948520448?commentUrn=urn%3Ali%3Acomment%3A%28activity%3A7400183369948520448%2C7400648742405554176%29&dashCommentUrn=urn%3Ali%3Afsd_comment%3A%287400648742405554176%2Curn%3Ali%3Aactivity%3A7400183369948520448%29


Note

Low Risk
Low risk UI navigation change that broadens “open in new tab” behavior to include middle-click; potential risk is minor regressions in sidebar click handling (e.g., pin icon interactions).

Overview
Sidebar navigation now treats middle-click the same as Ctrl/Meta-click when deciding to openInNewTab, via a shared shouldMouseEventOpenInNewTab helper used across menu handlers.

NavItem also triggers navigation on onMouseDown for middle clicks (while still respecting disabled items and ignoring clicks on the pin icon) so middle-click works consistently on sidebar entries.

Written by Cursor Bugbot for commit be22ce7. This will update automatically on new commits. Configure here.

@H4ad H4ad requested review from YounixM and aks07 as code owners December 4, 2025 04:40
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Dec 4, 2025

CLA assistant check
All committers have signed the CLA.

Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is being reviewed by Cursor Bugbot

Details

Your team is on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle for each member of your team.

To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

ishan621
ishan621 previously approved these changes Jan 16, 2026
Copy link
Copy Markdown
Contributor

@ishan621 ishan621 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will be a good addition to the overall user experience.

@ishan621 ishan621 requested a review from a team as a code owner January 16, 2026 05:32
@YounixM YounixM force-pushed the perf/chart branch 2 times, most recently from 917cefd to 6431688 Compare January 22, 2026 08:52
@H4ad
Copy link
Copy Markdown
Contributor Author

H4ad commented Feb 25, 2026

Closed in favor of #10350

@H4ad H4ad closed this Feb 25, 2026
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.

4 participants