i am trying to add a check for password-fields if caps-lock is active.

Therefore I want to use my old function "check_capslock(e)". I don't know how to map that function to a textfield. I found various methods to do, but nothing works. I downloaded the newest version of ExtJs today.

Here is my last try. I think "*" will not work, but I want to call that function if ANY character is pressed.

        var map = new Ext.KeyMap(field_password.getId(), {
            key: "*",
            fn: function(e) { checkCapsLock(e); }
But even using "key: 'abcd'" does return me the keycode within the "e"-object.

Best regards,