CEFGlue, WinForms - Disable right click

Having problems with building or using the CefGlue .NET/Mono binding? Ask your questions here.

Moderator: fddima

CEFGlue, WinForms - Disable right click

Postby aidenfry » Thu Jun 05, 2014 5:37 am

Hi,

I need to disable right click within the embedded browser using WinForms c#.

I can not get the Form to pick up the click, or enable the application to add a filter which ignores all right clicks (both these worked when using the default IE embedded browser). I believe this is being caused because the CEF library / browser is swallowing the events and not making these visible.

For more information please see this post.
http://stackoverflow.com/questions/2395 ... 0#23991360

Currently I am having to hook into the low level mouse events, this is causing issues because our clients Enterprise build of Windows 7 does not enable this hook as it can be exploited as a KeyLogger.

Aiden
aidenfry
Newbie
 
Posts: 4
Joined: Thu Jun 05, 2014 5:24 am

Re: CEFGlue, WinForms - Disable right click

Postby magreenblatt » Thu Jun 05, 2014 9:20 am

The C++ API provides CefContextMenuHandler::OnBeforeContextMenu where you can clear the menu. Not sue if that's exposed by cefglue.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: CEFGlue, WinForms - Disable right click

Postby aidenfry » Fri Jun 06, 2014 3:51 am

I don't understand. I am not talking about a menu, i need to disable right click events.
aidenfry
Newbie
 
Posts: 4
Joined: Thu Jun 05, 2014 5:24 am

Re: CEFGlue, WinForms - Disable right click

Postby magreenblatt » Fri Jun 06, 2014 9:08 am

aidenfry wrote:I don't understand. I am not talking about a menu, i need to disable right click events.

Why?
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: CEFGlue, WinForms - Disable right click

Postby aidenfry » Wed Jul 09, 2014 10:44 am

Because we wanted to hide the fact that it was an embeded browser and right click was revealing "show source". No matter we stopped caring about this. Closed issue.
aidenfry
Newbie
 
Posts: 4
Joined: Thu Jun 05, 2014 5:24 am


Return to CefGlue Forum

Who is online

Users browsing this forum: No registered users and 17 guests