TVTropes Now available in the app store!
Open

Follow TV Tropes

Following

Pressing 'enter' after you type in your account info

Go To

Yinyang107 from the True North (Decatroper) Relationship Status: Tongue-tied
#1: Apr 12th 2011 at 11:00:07 AM

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.

Stratadrake Dragon Writer Since: Oct, 2009
Dragon Writer
#2: Apr 12th 2011 at 3:12:25 PM

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.
INUH Since: Jul, 2009
#3: Apr 12th 2011 at 3:28:39 PM

^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 story
Fighteer Lost in Space from The Time Vortex (Time Abyss) Relationship Status: TV Tropes ruined my love life
Lost in Space
#4: Apr 12th 2011 at 4:01:15 PM

I'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!"
FastEddie Since: Apr, 2004
#5: Apr 12th 2011 at 5:02:03 PM

We require a human action (clicking by mouse) in order to defeat robotic account creation.

Goal: Clear, Concise and Witty
Stratadrake Dragon Writer Since: Oct, 2009
Dragon Writer
#6: Apr 12th 2011 at 10:07:04 PM

@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.
Yinyang107 from the True North (Decatroper) Relationship Status: Tongue-tied
Add Post

Total posts: 7
Top