function onKeyDownListener(e) {
        if (e.key !== 'Tab' || this.submitted) {
          return
        }

        if (e.shiftKey) {
          e.stopPropagation();
          e.preventDefault();

          if (this.navigation) {
            this.goToPreviousQuestion();
          }
        } else {
          var q = this.activeQuestionComponent();

          if (q.shouldFocus()) {
            e.preventDefault();

            q.focusField();
          } else {
            e.stopPropagation();

            this.emitTab();
            this.reverse = false;
          }
        }
      }
/**
       * Global key listeners, listen for Enter or Tab key events.
       */
Global key listeners, listen for Enter or Tab key events.
Global key listeners listen for Enter or Tab key events .
function onKeyDownListener(e) {
        if (e.key !== 'Tab' || this.submitted) {
          return
        }
        if (e.shiftKey) {
          e.stopPropagation();
          e.preventDefault();
          if (this.navigation) {
            this.goToPreviousQuestion();
          }
        } else {
          var q = this.activeQuestionComponent();
          if (q.shouldFocus()) {
            e.preventDefault();
            q.focusField();
          } else {
            e.stopPropagation();
            this.emitTab();
            this.reverse = false;
          }
        }
      }
function onKeyDownListener ( e ) { if ( e . key !== 'Tab' || this . submitted ) { return } if ( e . shiftKey ) { e . stopPropagation ( ) ; e . preventDefault ( ) ; if ( this . navigation ) { this . goToPreviousQuestion ( ) ; } } else { var q = this . activeQuestionComponent ( ) ; if ( q . shouldFocus ( ) ) { e . preventDefault ( ) ; q . focusField ( ) ; } else { e . stopPropagation ( ) ; this . emitTab ( ) ; this . reverse = false ; } } }
Global key listeners, listen for Enter or Tab key events.
Global key listeners listen for Enter or Tab key events .