Fixed _setLayoutInterval to respect keyboard focus in elements and pause