Skip to content

Context menu stays open untill user clicks one of the menu items (WPF) #2933

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

Closed
KubilayKara opened this issue Oct 17, 2019 · 1 comment
Closed
Labels
wpf WPF Implementation

Comments

@KubilayKara
Copy link

Hi,

When the user opens the context menu, it stays open until one of the menu items clicked.
However, clicking anywhere should close the menu.
Furthermore, the menu stays on top of every other window which is very disturbing for the user experience.

I'm using the latest available CefSharp.Wpf library which's version is 75.1.142.
You can reproduce this problem simply by putting a ChromiumWebBrowser to a WPF window and right-clicking on it.

I've found a similar issue that was closed due to a fix (#1795).
But it seems like the problem was reappeared.

@amaitland amaitland added the wpf WPF Implementation label Oct 22, 2019
@amaitland
Copy link
Member

Closing as duplicate of #1795

I've found a similar issue that was closed due to a fix (#1795).

As per #1795 (comment) you need to use a custom menu or integrate CEF into your applications message loop.

The project source contains an example of a custom menu handler https://github.com/cefsharp/CefSharp/blob/cefsharp/75/CefSharp.Wpf.Example/Handlers/MenuHandler.cs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wpf WPF Implementation
Projects
None yet
Development

No branches or pull requests

2 participants