internal override bool FocusNext(HtmlEvent evt) { if (_focusedIndex == -1) { _focusedIndex = 0; } int i = _focusedIndex; while (i < Children.Count) { Component comp = Children[i]; if (comp.FocusNext(evt)) { // If focus is not moving, don't reset the focus of the gallery item if (i != _focusedIndex) { ((Component)Children[_focusedIndex]).ResetFocusedIndex(); _focusedIndex = i; } return(true); } i++; } ((Component)Children[_focusedIndex]).ResetFocusedIndex(); _focusedIndex = -1; return(false); }
internal override bool FocusNext(HtmlEvent evt) { if (_focusedIndex == -1) { _focusedIndex = 0; } int i = _focusedIndex; while (i < Children.Count) { Component comp = Children[_focusedIndex]; if (comp.FocusNext(evt)) { _focusedIndex = i; return(true); } i++; } _focusedIndex = -1; return(false); }
internal override bool FocusNext(HtmlEvent evt) { if (_focusedIndex == -1) { _focusedIndex = 0; } int i = _focusedIndex; while (i < Children.Count) { Component comp = Children[i]; if (comp.FocusNext(evt)) { // If focus is not moving, don't reset the focus of the menu item if (i != _focusedIndex) { if (!CUIUtility.IsNullOrUndefined(Children[_focusedIndex])) { ((Component)Children[_focusedIndex]).ResetFocusedIndex(); } _focusedIndex = i; } return(true); } i++; } if (Children.Count > 0) { ((Component)Children[_focusedIndex]).ResetFocusedIndex(); } _focusedIndex = -1; return(false); }