Files
lserp_cs_6.0/插件库/Lskj.Control/BrowserSetting/BsContextMenuHandler.cs
T
cyf ab56a9bcf7 基线 SVN r240
SVN-Revision: r240
2025-02-06 06:46:06 +00:00

25 lines
699 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Xilium.CefGlue;
namespace Lskj.Control.BrowserSetting
{
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);
}
}
}