Exemple #1
0
        private void OnMouseDown(object sender, IHTMLControlEventArgs e)
        {
            var eventObj = e?.EventObj;

            if (eventObj.IsNull())
            {
                return;
            }

            if (!PluginCmdActionMap.Any())
            {
                return;
            }

            bool ctrl = eventObj.ctrlKey;
            bool lmb  = eventObj.button == 1;

            if (!ctrl || !lmb)
            {
                return;
            }

            OpenContextMenu(eventObj);
            eventObj.returnValue = false;
        }
Exemple #2
0
 public void handler(IHTMLEventObj e)
 {
     if (EventHandler != null)
     {
         var args = new IHTMLControlEventArgs(e, ControlIdx);
         EventHandler(this, args);
     }
 }