question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Selection is lost when ContextMenu is displayed

See original GitHub issue

We are displaying the context menu using Control.ContextRequestedEvent. Previously, is worked as expected, but since we migrated to preview 6, we’re losing the selection when the context menu is being displayed:

rightclick

Issue Analytics

  • State:closed
  • Created 6 months ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
maxkatz6commented, Apr 20, 2023

As a one who added ContextRequested event, you are supposed to handle this event, if you have opened any context menu. Otherwise, the same event can be handled by parent control and second menu might be opened. Even if this specific issue can be avoided in TDG, it still should be handled.

1reaction
grokyscommented, Apr 20, 2023
Read more comments on GitHub >

github_iconTop Results From Across the Web

Multiple selection lost when displaying ContextMenu
When using multiple selection in a TableView , clicking with the secondary button on a selected row to use the ContextMenu of the...
Read more >
ContextMenu - Selected text becomes unselected when a ...
Hi, i have noticed a strange issue related with ContextMenu - div text selection is losing focus after context menu is shown at...
Read more >
Some context menu items don't appear - Windows Client
Symptoms. The following items may be missing from the context (right-click) menu when multiple items are selected in Windows Explorer. · Cause.
Read more >
Missing Context Menu Options on Text Selection #13081
I'm unable to reproduce. If you have already selected all of the text it doesn't show. Based on your screenshots that's what is...
Read more >
Losing multi-select when right click for context menu
Hi, I am using the Rad gridview for windows forms. I have multiselect enabled and it mostly works like a charm (holding shift...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found