source/fonts.js
// When the family list gets focus, focus on the selected family item

When the family list gets focus, focus on the selected family item
When the family list gets focus focus on the selected family item
function onFamilyListFocus(e) {
    if (e.target) {
      const selected = e.target.querySelector('.selected')
      if (selected) {
        selected.focus()
      }
    }
  }
function onFamilyListFocus ( e ) { if ( e . target ) { const selected = e . target . querySelector ( '.selected' ) if ( selected ) { selected . focus ( ) } } }
When the family list gets focus, focus on the selected family item
When the family list gets focus focus on the selected family item