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

Default Context Menu Always Displayed #26

Closed
GoogleCodeExporter opened this issue Mar 27, 2016 · 4 comments
Closed

Default Context Menu Always Displayed #26

GoogleCodeExporter opened this issue Mar 27, 2016 · 4 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
Using the CustomMenuImplementation project and clicking the right mouse button 
cause the replacement context menu to appear but when you click an item within 
the context menu the default context menu is also displayed. If you set the 
UseDefaultContextMenu=false the default context menu is still displayed.

What is the expected output? What do you see instead?
When you set UseDefaultContextMenu=false the context menu should no longer be 
displayed unless it is overridden using the 
WebkitControl.CustomContextMenuManager.ShowContextMenu event.

What version of the product are you using? On what operating system?
OpenWebKitSharp 2.0 on Windows 7 x64 with visual studio 2010 

Please provide any additional information below.

Original issue reported on code.google.com by ben.war...@gmail.com on 17 Nov 2011 at 7:36

@GoogleCodeExporter
Copy link
Author

I fixed this and will have it ready for 2.1R1. I also added a 
UseCustomContextMenu bool property for those who want to implement their own 
context menu.

Original comment by tsumalis96@gmail.com on 17 Nov 2011 at 2:38

  • Changed state: Started

@GoogleCodeExporter
Copy link
Author

Cool - Thanks :) 

In the meantime I have just put a hack in place that intercepts all the right 
mouse button clicks coming through to the webkit control using the 
IMessageFilter interface.

Original comment by ben.war...@gmail.com on 17 Nov 2011 at 6:41

@GoogleCodeExporter
Copy link
Author

I don't know how it can be done that way, but it is simple if you want to 
disable the context menu via the code. You can go to uiDelegate.cs at int 
contextMenuItemsForElement (sth like that) and replace the whole code with 
return 0;

Original comment by tsumalis96@gmail.com on 18 Nov 2011 at 3:58

@GoogleCodeExporter
Copy link
Author

This has been fixed for r55 and up

Original comment by tsumalis96@gmail.com on 26 Nov 2011 at 11:38

  • Changed state: Fixed

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

No branches or pull requests

1 participant