public bool toggle(object data, Bridge.Html5.Event e) { if (e.Target.TagName == "A") { return(true); } return(true); }
private void OnContentElementKeyDown(Bridge.Html5.Event e) { if (!IsReadOnly && AcceptsTab && ((Bridge.Html5.KeyboardEvent)e).KeyCode == 9) { int selectionStart = SelectionStart; string contentElementText = ContentElement.HtmlElement.GetValue(); this.Text = String.Format("{0}\t{1}", contentElementText.Substring(0, SelectionStart), contentElementText.Substring(SelectionStart + SelectionLength)); ContentElement.HtmlElement.SetSelectionStart(selectionStart + 1); ContentElement.HtmlElement.SetSelectionEnd(selectionStart + 1); GetContentElementSelection(); e.PreventDefault(); } }