B2G/gecko/browser/devtools/webconsole/webconsole.js
/**
   * Accept the proposed input completion.
   *
   * @return boolean
   *         True if there was a selected completion item and the input value
   *         was updated, false otherwise.
   */
Accept the proposed input completion.
@return boolean
True if there was a selected completion item and the input value
was updated, false otherwise.
Accept the proposed input completion . @return boolean True if there was a selected completion item and the input value was updated false otherwise .
function JSTF_acceptProposedCompletion()
  {
    let updated = false;
    let currentItem = this.autocompletePopup.selectedItem;
    if (currentItem && this.lastCompletion.value) {
      let suffix = currentItem.label.substring(this.lastCompletion.
                                               matchProp.length);
      this.setInputValue(this.inputNode.value + suffix);
      updated = true;
    }
    this.clearCompletion();
    return updated;
  }
function JSTF_acceptProposedCompletion ( ) { let updated = false ; let currentItem = this . autocompletePopup . selectedItem ; if ( currentItem && this . lastCompletion . value ) { let suffix = currentItem . label . substring ( this . lastCompletion . matchProp . length ) ; this . setInputValue ( this . inputNode . value + suffix ) ; updated = true ; } this . clearCompletion ( ) ; return updated ; }
Accept the proposed input completion.
Accept the proposed input completion .