Hello Paul,

Thank you very much for contributing and improving XSLTForms!

I have integrated this patch in the latest build: http://svn.code.sf.net/p/xsltforms/svn or https://github.com/AlainCouthures/xsltforms.git

-Alain

Le 14/03/2013 22:38, Paul Vanderveen a écrit :

TerraXML has an XSLTForms 1.0RC based search form that has an onkeydown event that uses the enter key to submit the search request (see form image)

 

When you press the enter key to perform the search in IE9, the website would reload.

 

Turns out the keypress event was getting handled by XSLTForms, but it was propagating to other windows in the app.  

The following change to xsltforms.js seems to have fixed this behavior.  I have not identified any ill-effects from doing this so far.

 

(xsltforms.js, line 5300)

XsltForms_input.keyPressActivate = function(a) {

this.keyPressCode = a.keyCode;

   

    /** Change put in by PV TerraXML to prevent ENTER key bleedthrough on IE9 (See TV-238) */

    if (a.keyCode === 13) {

        if (a.stopPropagation) {

            a.stopPropagation();

            a.preventDefault();

        }

        else {

            a.cancelBubble = true;

        }

    }

    /* END */

};

 

 

 

 

Paul Vanderveen

Chief Architect, Research and Development

 

Description: TerraXML-Logo-BIG

1380 Forest Park Circle, Suite 100

Lafayette, CO  80026

p:  888-707-7846 x 221

 



------------------------------------------------------------------------------
Own the Future-Intel® Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game 
on Steam. $5K grand prize plus 10 genre and skill prizes. 
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d
_______________________________________________
Xsltforms-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xsltforms-support

Reply via email to