Quote Originally Posted by mohaskuar View Post
i think this is the best way ...i having a problem on my submitLogin(); function be cause my login function accepts a button as an angument
submitLogin(button);........so how can i pass any button?on a key press
mohaskuar, Why do you need this argument? You need this button to rescue your Form? Because your function "submitLogin()" should have as scope your Form.
I published a post showing how use the class Ext.util.KeyMap, but is in portuguese: Using the class Ext.util.KeyMap. See definition of scope for both methods.
I hope help you get an idea of how to do.