packages/inquirer/lib/prompts/ordinal.js
/**
   * When user press `enter` key
   */
When user press `enter` key
When user press ` enter ` key
onEnd(state) {
    this.status = 'answered';
    this.spaceKeyPressed = true;
    this.render();
    this.screen.done();
    cliCursor.show();
    this.done(state.value);
  }
onEnd ( state ) { this . status = 'answered' ; this . spaceKeyPressed = true ; this . render ( ) ; this . screen . done ( ) ; cliCursor . show ( ) ; this . done ( state . value ) ; }
When user press `enter` key
When user press ` enter ` key
// Rerender prompt (and clean subline error)