public override void OnClickEvent(MouseEvent clickEvent) { // Who wants the click? That's the for element: HtmlElement forElement = control; if (forElement != null && clickEvent.isTrusted) { // Click it (note that this click is *not trusted* which blocks it from going recursive): forElement.click(); } }
/// <summary>If there is an element focused, this will click it (mouse down and up are triggered).</summary> public void ClickFocused() { HtmlElement focused = htmlActiveElement; if (focused == null) { return; } // Click it: focused.click(); }