doc-html/src/javascripts/pdoc/application.js
function(event) {
    // Clear the text box on ESC.
    if (event.keyCode && event.keyCode === Event.KEY_ESC) {
      this.element.setValue('');
    }
    
    if (PDoc.Sidebar.Filterer.INTERCEPT_KEYS.include(event.keyCode))
      return;
        
    // If there's nothing in the text box, clear the results list.
    var value = $F(this.element).strip().toLowerCase();    
    if (value === '') {
      this.emptyResults();
      this.hideResults();
      return;
    }
    
    var urls  = this.findURLs(value);
    this.buildResults(urls);
  }
function(event) {
    // Clear the text box on ESC.
    if (event.keyCode && event.keyCode === Event.KEY_ESC) {
      this.element.setValue('');
    }
    
    if (PDoc.Sidebar.Filterer.INTERCEPT_KEYS.include(event.keyCode))
      return;
        
    // If there's nothing in the text box, clear the results list.
    var value = $F(this.element).strip().toLowerCase();    
    if (value === '') {
      this.emptyResults();
      this.hideResults();
      return;
    }
    
    var urls  = this.findURLs(value);
    this.buildResults(urls);
  }
function ( event ) { // Clear the text box on ESC. if ( event . keyCode && event . keyCode === Event . KEY_ESC ) { this . element . setValue ( '' ) ; } if ( PDoc . Sidebar . Filterer . INTERCEPT_KEYS . include ( event . keyCode ) ) return ; // If there's nothing in the text box, clear the results list. var value = $F ( this . element ) . strip ( ) . toLowerCase ( ) ; if ( value === '' ) { this . emptyResults ( ) ; this . hideResults ( ) ; return ; } var urls = this . findURLs ( value ) ; this . buildResults ( urls ) ; }
Called whenever the list of results needs to update as a result of a changed search key.
Called whenever the list of results needs to update as a result of a changed search key .