lovely0493 / open-webkit-sharp

Automatically exported from code.google.com/p/open-webkit-sharp
GNU Lesser General Public License v3.0
1 stars 0 forks source link

Default Context Menu Always Displayed #26

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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 commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
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 commented 8 years ago
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 commented 8 years ago
This has been fixed for r55 and up

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