title: How to go to next input by tapping return key on an iPhone/iPad with Ionic2?
body: <p>I am using Ionic Cordova to build an iPhone app. I have a login screen username input and password input plus a submit button. I cannot make to focus on password input after typing the username and tap "return".</p>
  
  <p>My login.html looks like this:</p>
  
  <pre><code>&lt;ion-list &gt;
       &lt;ion-item&gt;
  &lt;div id="loginlogo"&gt;&lt;/div&gt;
       &lt;/ion-item&gt;
        &lt;ion-item&gt;
          &lt;ion-label stacked&gt;Username&lt;/ion-label&gt;
          &lt;ion-input type="text" name="usernameInput"  (keyup.enter)="focusAndGo()" [(ngModel)]="usernameInput"&gt;&lt;/ion-input&gt;
        &lt;/ion-item&gt;
  
        &lt;ion-item&gt;
          &lt;ion-label stacked&gt;Password&lt;/ion-label&gt;
          &lt;ion-input type="password" id="passwordInput"  name="passwordInput" [(ngModel)]="passwordInput"&gt;&lt;/ion-input&gt;
        &lt;/ion-item&gt;
       &lt;ion-item&gt;&lt;button (click)="logincontrol()" ion-button color="light" block&gt;Login&lt;/button&gt;&lt;/ion-item&gt;
      &lt;/ion-list&gt;
  </code></pre>
  
  <p>and my login.ts look like this:</p>
  
  <pre><code>@ViewChild('passwordInput') nameInput;
    focusAndGo()
    {
      var input = document.getElementById('passwordInput');
      input.focus();
      this.nameInput.setFocus();
      //this.nameInput.nativeElement.focus();
      //this.nameInput.nativeElement.setFocus();
      //this.passwordInput.focus();
      //alert(event.keyCode );
      //if( event.keyCode ==13)
      //{
      //this.passwordInput.focus;
      //}       
    }
  </code></pre>
  
  <p>I tried everything that is commented above. I cannot get cursor to move to next input. </p>