initFocus = (domCache, innerParams) => {
  if (innerParams.toast) {
    return
  }
  // TODO: this is dumb, remove `allowEnterKey` param in the next major version
  if (!callIfFunction(innerParams.allowEnterKey)) {
    warnAboutDeprecation('allowEnterKey')
    blurActiveElement()
    return
  }

  if (focusAutofocus(domCache)) {
    return
  }

  if (focusButton(domCache, innerParams)) {
    return
  }

  setFocus(-1, 1)
}
Initialize focus in the popup:

1. If `toast` is `true`, don't steal focus from the document.
2. Else if there is an [autofocus] element, focus it.
3. Else if `focusConfirm` is `true` and confirm button is visible, focus it.
4. Else if `focusDeny` is `true` and deny button is visible, focus it.
5. Else if `focusCancel` is `true` and cancel button is visible, focus it.
6. Else focus the first focusable element in a popup (if any).

@param {DomCache} domCache
@param {SweetAlertOptions} innerParams