• Resolved Leandro

    (@leandroprz)


    Hi,

    I just updated to v4.7.3 and noticed the plugin doesn’t recognize the Enter key anymore, when pressed it does nothing. I must click on the loupe to start searching.

    Is this intended behavior?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author wpdreams

    (@wpdreams)

    Hi,

    Actually, it was not intended. There was a change to fix a certain issue with mobile devices, I didn’t notice this happens when no redirection is set.

    Anyways, this was in preparation for the next weeks upcoming update, which will change a few options regarding return key and magnifier icon actions.

    As a temporary solution, you can try putting this custom code to the functions.php file in your currently active theme directory:

    add_action('wp_footer', 'asl_tigger_on_return');                 
    function asl_tigger_on_return() {          
      ?>
      <script>
      jQuery(function($){
        $('.proinput input.orig').keypress(function (e) {
         var key = e.which;
         if(key == 13) {
            $('.promagnifier').click();
          }
        });
      });
      </script>
      <?php
    }

    This will add a script to the site footer, which will trigger the magnifier icon if the user hits the return button.

    Thread Starter Leandro

    (@leandroprz)

    Works great, thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Enter key no longer works when searching’ is closed to new replies.