IIRC According to the W3C specs, ‘Enter’ is meant to submit a form alright, just not all browsers did so. Opera behaves this way also.
Tab is meant to be used to switch between fields.
The problem is, there’s two Submit buttons in the form, one is the ‘Go’ for
searching for users, and one for ‘Save Changes’.
When you hit Enter, it’s using the ‘Go’ submit, not the ‘Save Changes’ button.
This becomes a UI design issue, as opposed to a bug.
The form could be seperated into two forms, but that may upset some people who like to set/delete watchers, and search for more all at the same time.
The ‘Save Changes’ could (maybe) be made the default action, but that may upset some people too. I know you can set the TabIndex on form elements to decide what field to move to when ‘Tab’ is hit, there may be a similar thing to set default submit buttons.
As an aside, the same thing will happen if you are using the ‘search’.
If you hit enter, it’ll default to the Refine button, not the ‘Show results’ button. But that suits me perfectly, because I can build up complex queries quicker, without having to use the mouse, or tab all the way down.
-Feargal.On Fri, 21 Dec 2001 12:46:10 -0500 Rich West Rich.West@wesmo.com wrote:
Ok… This looks to have been tracked down to a browser usage problem.
And, as per Jesse’s request, I am sending in this summary to keep
everyone up to date.
It seems that Netscape 6 (Mozilla based) and other Mozilla based
browsers as well as IE 6 try to be a little smart in guessing the way
that the end user is working with forms. For example, if you are
entering information into a form and you fill out the fields, it guesses
that if you hit “Enter” or “Return”, you really mean that you want to
submit the form.
Netscape 4.x never behaved this way (not sure about IE). You physically
had to hit the “Submit” button with the mouse in order for the form to
be submitted.
Well, as it works out, if you want to “Modify people related to ticket
#blah”, and you want to add email addresses as “New Watchers”, you can
tickle a bug (possibly in form within RT, but I am not sure). If you
select a “Type” under add new watchers and then enter in an email
address followed by the “Enter” key, both Netscape 6 and IE 6 “submit”
the form.
Apparently, the way the form is getting submitted, some variable is
not getting set, so the resulting page displayed is the original
“Modify people” page as if you had not made any changes.
The proper way to make these changes is to not hit the enter key, but
move the mouse over to the “Save Changes” button and click on it.
I saw this problem on two separate RT installations (didn’t check beyond
that), one with RT 2.0.9 and the other with RT-2.0.10-test3. Both
behaved the same way… both under Netscape 6.x and IE 6. Both behaved
properly when the Save Changes button was manually clicked as opposed to
hitting the “Enter” key.
-Rich
–
Richard West $14.95 Registrations mailto:rwest@wesmo.com
Wesmo Computer Services .com .net .org .tv .cc http://www.wesmo.com
Full Domain & Web Hosting .BIZ .INFO & MORE!!
rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users
Feargal Reilly, | Communications House,
Systems Administrator. | 1a Lower Pembroke Street,
The CIA - http://www.thecia.ie/ | Dublin 2,
Ph: +353-1-6768230 Fax: +353-1-6767720 | Ireland.
PGP fingerprint: 9EA0 F62E 2345 6062 E522 00F2 31D0 B1B0 D678 96DB