TAHbKA
September 26th, 2004, 07:00 AM
I have a modal dialog which is opened by showModalDialog. On the dialog there are 2 buttons and a password field. All that in JavaScript
The problem:
When I press the "enter" key of the keyboard while the focus is on the password field (say, when I'm in the middle of password typig) another window opens (and naturally, I don't want it to). How can I disable it? I don't want another window to open (happens only when the focus is on password, when the focus is on one of the buttons it just activates them). What should I do? Disable the "enter" ? If so, how? Is there any trick with a focus?
My first post here, please let me know if something is out of order, so I won't repeat the mistakes.
Thanks!
The problem:
When I press the "enter" key of the keyboard while the focus is on the password field (say, when I'm in the middle of password typig) another window opens (and naturally, I don't want it to). How can I disable it? I don't want another window to open (happens only when the focus is on password, when the focus is on one of the buttons it just activates them). What should I do? Disable the "enter" ? If so, how? Is there any trick with a focus?
My first post here, please let me know if something is out of order, so I won't repeat the mistakes.
Thanks!