How to ignore ENTER key from clearing dynamic search

Hi @coothead,

Many thanks for the suggestion it was a great help.

I already had a JavaScript function addEventListener(…) and failed miserably trying to add e.preventDefault();, etc. Also prevented the search from working so…

…investigated further and managed to add the following script:

  <!-- 
    added onsubmit= 'return trapEnterKey("Pressing ENTER \n\t is \n unnecessary")'
  -->
  <form 
      action="?" 
      method="get" 
      onsubmit= 'return trapEnterKey("Pressing ENTER \n\t is \n unnecessary")'
    >

Also added the following JavaScript function trapEnterKey(…)

//======================================================
function trapEnterKey( msg )
{
  alert(msg);

  return false;
}

It now works a treat and also adds an informative popup JavaScript Alert box.