Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Different behavior between navigators

$
0
0
Hi.
We have some code to capture event keys, specifically, backspace key.
This is the code:
Code:

isc.Page.setEvent("keyPress", keyPressFunction);
function keyPressFunction(){
        if ('Backspace' == isc.Event.getKey())  {
                var item = isc.Event.getActiveElement();

                var cadena = item.isDisabled;
                if (cadena == null || cadena=="undefined" || cadena ){
                        return false;
                }
                var cadena2 = item.isContentEditable;
                if (cadena2 == null || cadena2=="undefined" || !cadena2 ){
                        return false;
                }
                var cadena3 = item.isTextEdit;
                if (cadena3 == null || cadena3=="undefined" || !cadena3 ){
                        return false;
                }

                return true;
        }
}

The matter is: when we test this on a I.Explorer 10.0.9200.16750, works perfectly.
But when test this on a Google Chrome Versión 31.0.1650.63, backspace doesn't remove the letter written.
Since there is only smartclient code, I guess this code, should works in the same way on both (or more) navigators...
ok or wrong, but same behaviour on both sides, doesn't it?...
Could be this a (little) bug?
Thanks in advance.

We are working under:
v9.0p_2013-08-20/PowerEdition Development SC and IExplrorer 10.0.9200 navigator, Eclipse Helios and Tomcat 7.0.28

Viewing all articles
Browse latest Browse all 4756

Trending Articles