static/js/client.js
/**
 * Handle moving between keyboard inputs.
 */
Handle moving between keyboard inputs.
Handle moving between keyboard inputs .
function moveInput(direction) {
  if ($('input[name=userId]').val() === '') {
    return;
  }
  if (currentInput == null) {
    currentInput = 0;
  } else {
    target = currentInput + direction;
    if (target >= 0 && target < inputs.length) {
      currentInput = target;
    }
  }
  $(inputs[currentInput]).focus();
}
function moveInput ( direction ) { if ( $ ( 'input[name=userId]' ) . val ( ) === '' ) { return ; } if ( currentInput == null ) { currentInput = 0 ; } else { target = currentInput + direction ; if ( target >= 0 && target < inputs . length ) { currentInput = target ; } } $ ( inputs [ currentInput ] ) . focus ( ) ; }
Handle moving between keyboard inputs.
Handle moving between keyboard inputs .