Many Web browsers automatically assume that pressing Enter on a form submits the form (except when the focus is on a multiline textarea control)
An Ear Worm is like a Rickroll: It is never going to give you up.^In this case, though, the browser assumes submitting the form means getting known, since that's the first button, rather than signing in to an existing account.
Infinite Tree: an experimental storyI'm pretty sure you have to set an action parameter for the form input to tell it what to do when you press Enter. Not a big web programming guru but that's how it works in most visual applications.
"It's Occam's Shuriken! If the answer is elusive, never rule out ninjas!"@Fighteer: It's possible to set up keypress events in Javascript, but that's really the fly-with-sledgehammer approach. I think INUH gets the point — the "Register" button is the first one on the form, so that's the one that activates by default when you press Enter.
Swapping the placement of the two buttons would address the matter in one fell swoop with no significant code alterations required.
— Wait, those are <button> tags instead of <input> tags? And with no <form> to contain them in?
edited 12th Apr '11 10:11:44 PM by Stratadrake
An Ear Worm is like a Rickroll: It is never going to give you up.

On the Get Known page, could you hook it up so that hitting enter logs you in? As opposed to needing to hit tab-tab-space or use the mouse, I mean.