myapp/src/components/views/SearchBar.js
// Dalu: if the enter key is pressed, begin to search
if the enter key is pressed, begin to search
if the enter key is pressed begin to search
onSearch(event)
  {
    if(event.keyCode === 13) 
    {
      console.log("ON_SEARCH", "begin to search: cat="+$('#exampleSelect').val()+", key="+$('#searchInput').val());
      this.props.history.push('/Search');
      this.props.onChangeSelectInput($('#exampleSelect').val());
      this.props.onChangeSearchInput($('#searchInput').val());
    }
  }
onSearch ( event ) { if ( event . keyCode === 13 ) { console . log ( "ON_SEARCH" , "begin to search: cat=" + $ ( '#exampleSelect' ) . val ( ) + ", key=" + $ ( '#searchInput' ) . val ( ) ) ; this . props . history . push ( '/Search' ) ; this . props . onChangeSelectInput ( $ ( '#exampleSelect' ) . val ( ) ) ; this . props . onChangeSearchInput ( $ ( '#searchInput' ) . val ( ) ) ; } }
Dalu: if the enter key is pressed, begin to search
Dalu : if the enter key is pressed begin to search
// enter key