Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Context Menu Item Immediately Selected on Right-Click Release #245060

Closed
fweth opened this issue Mar 30, 2025 · 5 comments
Closed

Context Menu Item Immediately Selected on Right-Click Release #245060

fweth opened this issue Mar 30, 2025 · 5 comments
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s) triage-needed

Comments

@fweth
Copy link

fweth commented Mar 30, 2025

Does this issue occur when all extensions are disabled?: Yes, but I use native titlebar style, which gives me a different context menu, it doesn't occur with custom titlebar style.

  • VS Code Version: 1.99.0-insider
  • OS Version: Xubuntu 22.04

Steps to Reproduce:

  1. Open any file.
  2. Right-click on a word in the code such that the context menu appears behind the cursor, not beneath it. This typically happens when there's not enough space at the bottom of the screen to display the menu.
  3. Release the right mouse button.

Expected Behavior:
The context menu should remain open after releasing the right mouse button, allowing you to move the mouse and click an item with the left button.

Actual Behavior:
As soon as you release the right mouse button, the item currently under the cursor is immediately selected. The context menu can still be used, but only if you drag the mouse while holding the right button down — not using the more convenient pattern of right-click → move mouse → left-click on an option.

@RedCMD
Copy link
Contributor

RedCMD commented Mar 30, 2025

I cannot confirm
both at https://insiders.vscode.dev/ and 1.98.2 local
Windows 11

@xiaojiuwo1993
Copy link

Same problem here. I noticed if the screen space is not enough for right menu full length, the problem will happend.

@fweth
Copy link
Author

fweth commented Mar 30, 2025

Ah, I noticed it’s because when set "window.titleBarStyle": "native". But I don’t actually need a native context menu—I only set the title bar to native because I want to save screen estate. It would be nice if there were a way to use the native title bar without the native context menu.

@bpasero
Copy link
Member

bpasero commented Mar 30, 2025

/duplicate #224743

@vs-code-engineering vs-code-engineering bot added the *duplicate Issue identified as a duplicate of another issue(s) label Mar 30, 2025
Copy link

Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for similar existing issues. See also our issue reporting guidelines.

Happy Coding!

@vs-code-engineering vs-code-engineering bot closed this as not planned Won't fix, can't repro, duplicate, stale Mar 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
*duplicate Issue identified as a duplicate of another issue(s) triage-needed
Projects
None yet
Development

No branches or pull requests

5 participants