You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.
With update 8.0.7 form updates by pressing the enter key have been suppressed. Which I can understand because of issues with Ajax. However, for the mini search it seems to be much user friendly if the enter key would not be suppressed. I tried to undo the update for mini search by changing the skinwidgetminisearch include code:
if (event.which == 13) {event.preventDefault(); return false;}
to:
if (event.which == 13) {return true;}
But the behavior is still the same. I thought of changing the same line of code in the frontend.js but if I do that I believe it would apply to all input text boxes. Is there anyway to revert back to the old behavior just for the Mini Search widget?
Offline
In frontend.js you an explicitly change the behavior of just the text input field:
jQuery('input:text, input:password').keydown(function(event){ if (event.which == 13) {event.preventDefault(); return false;} return true; });
Becomes:
jQuery('input:text, input:password').keydown(function(event){ if (jQuery(this).attr('id') == 'ecom--minisearch--ecom--prodsearch--string') {return true;} if (event.which == 13) {event.preventDefault(); return false;} return true; });
Offline