基线 SVN r240
SVN-Revision: r240
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using Xilium.CefGlue;
|
||||
|
||||
namespace Lskj.Control.BrowserSetting2
|
||||
{
|
||||
public class BsContextMenuHandler : CefContextMenuHandler
|
||||
{
|
||||
private int rightKeyFlag;
|
||||
public BsContextMenuHandler(int RightKeyFlag)
|
||||
{
|
||||
this.rightKeyFlag = RightKeyFlag;
|
||||
}
|
||||
protected override void OnBeforeContextMenu(CefBrowser browser, CefFrame frame, CefContextMenuParams state, CefMenuModel model)
|
||||
{
|
||||
if (rightKeyFlag == 1)
|
||||
{
|
||||
model.Clear();
|
||||
}
|
||||
base.OnBeforeContextMenu(browser, frame, state, model);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user