function focusTriggersKeyboardModality(el) {
      var type = el.type;
      var tagName = el.tagName;

      if (tagName === 'INPUT' && inputTypesAllowlist[type] && !el.readOnly) {
        return true;
      }

      if (tagName === 'TEXTAREA' && !el.readOnly) {
        return true;
      }

      if (el.isContentEditable) {
        return true;
      }

      return false;
    }
Computes whether the given element should automatically trigger the
`focus-visible` class being added, i.e. whether it should always match
`:focus-visible` when focused.
@param {Element} el
@return {boolean}