B2G/gaia/apps/keyboard/js/keyboard.js
// To determine if the candidate panel for word suggestion is needed
To determine if the candidate panel for word suggestion is needed
To determine if the candidate panel for word suggestion is needed
function needsCandidatePanel() {
  return !!((Keyboards[keyboardName].autoCorrectLanguage ||
           Keyboards[keyboardName].needsCandidatePanel) &&
          (!inputMethod.displaysCandidates ||
           inputMethod.displaysCandidates()));
}
function needsCandidatePanel ( ) { return ! ! ( ( Keyboards [ keyboardName ] . autoCorrectLanguage || Keyboards [ keyboardName ] . needsCandidatePanel ) && ( ! inputMethod . displaysCandidates || inputMethod . displaysCandidates ( ) ) ) ; }
To determine if the candidate panel for word suggestion is needed
To determine if the candidate panel for word suggestion is needed