Bind a key (for page transition with backspace) only if the key is NOT pressed in an input field?
i don't know why, but i got this already to work but today it stopped working. The base code is:

    $(document).bind("keydown", function(e){
        if (e.keyCode) code = e.keyCode;         // für alle Browser
        else if (e.which) code = e.which;         // für ie
        if(code==8) {
        $("#outer-frame").fadeOut(400, function (){
            history.back(-1);
    });
        return false; // unterbricht die Verarbeitung durch den Browser
    }
    });
and i also had an if statement, don't know it anymore, it suddenly stopped working.
I want that the backspace key is bind to keydown and execute a page transition effect. No problem as long is i want to prevent the whole thing beeing called if a user hits the backspace key in an input field, es he would be redirected to the last page in his history.

PLS help me! It's so annoying if something just stopped working.

I used the :focus selector from css like if ( $("input:focus") ... 


Bind a key (for page transition with backspace) only if the key is NOT pressed in an input field?
===

i don't know why, but i got this already to work but today it stopped working. The base code is:

    $(document).bind("keydown", function(e){
        if (e.keyCode) code = e.keyCode;         // für alle Browser
        else if (e.which) code = e.which;         // für ie
        if(code==8) {
        $("#outer-frame").fadeOut(400, function (){
            history.back(-1);
    });
        return false; // unterbricht die Verarbeitung durch den Browser
    }
    });
and i also had an if statement, don't know it anymore, it suddenly stopped working.
I want that the backspace key is bind to keydown and execute a page transition effect. No problem as long is i want to prevent the whole thing beeing called if a user hits the backspace key in an input field, es he would be redirected to the last page in his history.

PLS help me! It's so annoying if something just stopped working.

I used the :focus selector from css like if ( $("input:focus") ... 

