enableHotKeys(props) {
    if (props.onFocus) {
      props.onFocus(...arguments);
    }

    const focusTreeId =
      KeyEventManager.getFocusOnlyEventStrategy().enableHotKeys(
        this.id,
        this._getKeyMap(props),
        this._getHandlers(props),
        getComponentOptions()
      );

    if (!isUndefined(focusTreeId)) {
      /**
       * focusTreeId should never normally be undefined, but this return state is
       * used to indicate that a component with the same componentId has already
       * registered as focused/enabled (again, a condition that should not normally
       * occur, but apparently can for as-yet unknown reasons).
       *
       * @see https://github.com/greena13/react-hotkeys/issues/173
       */
      this._focusTreeIdsPush(focusTreeId);
    }

    this._setFocused(true);
  }
Handles when the component gains focus by calling onFocus prop, if defined, and
registering itself with the KeyEventManager
@private