src/core/services/gesture/gesture.js
function canFocus(element) {
  return (
    !!element &&
    element.getAttribute('tabindex') !== '-1' &&
    !element.hasAttribute('disabled') &&
    (
      element.hasAttribute('tabindex') ||
      element.hasAttribute('href') ||
      element.isContentEditable ||
      ['INPUT', 'SELECT', 'BUTTON', 'TEXTAREA', 'VIDEO', 'AUDIO'].indexOf(element.nodeName) !== -1
    )
  );
}
function canFocus(element) {
  return (
    !!element &&
    element.getAttribute('tabindex') !== '-1' &&
    !element.hasAttribute('disabled') &&
    (
      element.hasAttribute('tabindex') ||
      element.hasAttribute('href') ||
      element.isContentEditable ||
      ['INPUT', 'SELECT', 'BUTTON', 'TEXTAREA', 'VIDEO', 'AUDIO'].indexOf(element.nodeName) !== -1
    )
  );
}
function canFocus ( element ) { return ( ! ! element && element . getAttribute ( 'tabindex' ) !== '-1' && ! element . hasAttribute ( 'disabled' ) && ( element . hasAttribute ( 'tabindex' ) || element . hasAttribute ( 'href' ) || element . isContentEditable || [ 'INPUT' , 'SELECT' , 'BUTTON' , 'TEXTAREA' , 'VIDEO' , 'AUDIO' ] . indexOf ( element . nodeName ) !== - 1 ) ) ; }
Checks whether an element can be focused.
Checks whether an element can be focused .