Detecting key strokes in a web form
<p>I've got a web form textbox with text mode set to multiple. Recently a feature stopped working and I can't figure out what happenned. When a user hit the [Return] key two consecutive times, the webform would trigger a submit button event via a client side javascript. Like this:</p>

<pre><code>function postPage() {       
    var inputString = document.getElementById("Search1_AccordionPane2_content_txtSearchText").value;

    if (inputString.match(/(\r\n){2,}/)) {
        document.getElementById("Search1_AccordionPane2_content_txtSearchText").click();
    }
}
</code></pre>

<p>The code hasn't changed, our users use IE8 on W7 and I suspect that this stopped working since going W7 or IE8. Also the browser settings are restricted by the group policy that I don't control. Any ideas where to start debugging this?</p>

<p>Thank you,</p>

<p>Risho</p>
