Adding recurence to Menu::isItemActive

issue #3827