void HTMLOptGroupElement::accessKeyAction(bool) { HTMLSelectElement* select = ownerSelectElement(); // send to the parent to bring focus to the list box if (select && !select->focused()) select->accessKeyAction(false); }
bool HTMLOptionElement::spatialNavigationFocused() const { HTMLSelectElement* select = ownerSelectElement(); if (!select || !select->focused()) return false; return select->spatialNavigationFocusedOption() == this; }