Open Bug 31232 Opened 25 years ago Updated 2 years ago

RFE - Tab in textarea really work as #spaces when desired.

Categories

(Core :: Layout: Form Controls, enhancement, P3)

x86
Windows 98
enhancement

Tracking

()

Future

People

(Reporter: mgalli, Unassigned)

References

Details

(Keywords: helpwanted)

Someone commented about a bug whose tag inside textarea is doing spaces instead 
navigate through form fields. Is there a way, via JavaScript, to disable the 
correct feature (navigation between fields) and in fact enable for example
 N spaces tab?

If not, inside the text field, can we intercept the event of the tab? and avoid 
the navigation between form fields? using DOM2?

if not. It's a RFE. Because I think users will try, now, to make editors inside 
Netscape. And if tab (spaces) is not going to work, so they will have to code 
from scratch a textarea written in JavaScript and DOM1/2.
It does seem likely that someone will want to build an editor inside the 
browser.

See also bug 29086, "Tabbing within TEXTAREA removes focus from text field":
apparently entering tabs within the textarea is standard behavior in NN 4.x on 
the Mac; see the 2000-02-24 comment by masri@nolex.com.

There remains the problem of how to leave the textarea if tab is not doing that
job; cc-ing mpt@mailandnews.com and lake@netscape.com, who are already looking
into that problem.

It may make sense to do this as a CSS property as well as well as through js
DOM manipulation; py8ieh=bugzilla@bath.ac.uk, does this make any sense as a
proposal for CSS3?
Severity: normal → enhancement
Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: RFE - Tab in textarea really work as #spaces when desired. → RFE - Tab in textarea really work as #spaces when desired.
*** Bug 32653 has been marked as a duplicate of this bug. ***
If a particular Web app wants spaces instead of tabs, surely the author can just 
write JavaScript to do an auto-replace on the text as it is entered -- or even as 
it is submitted? That way it could have an app-specific number of spaces, it 
could do things the other way around (converting spaces to tabs), etc etc.

I don't think this is something the user agent should care about. And entering a 
string of consecutive spaces definitely isn't important enough to sacrifice a
<modifier>+Tab assignment for.
I really don't think this is my issue.
Assignee: rods → buster
Status: NEW → ASSIGNED
Target Milestone: --- → M20
> surely the author can just write JavaScript to do an auto-replace on the 
> text as it is entered 

i think the problem is that tabs would otherwise be interpreted as "go to the 
next field", which is hard for javascript to capture.
This _could_ be something the CSS working group would want to think about, if
we want to move this further then someone will have to post to www-style and
suggest it (if it hasn't already been suggested).

Eric, is this important enough for Netscape's FCS? I'm guessing that it is not
and marking it Future, helpwanted.
Keywords: helpwanted
Target Milestone: M20 → Future
A "nice to have" ENH --> confirming FUTURE. Ian's correct as usual ...
Updating QA contact.
QA Contact: ckritzer → bsharma
Just as a note: Tab in the browser should do only one thing in this case and 
that is to move the focus from one item to another. This is so importiant 
becasue the tab key is relied on for this purpose. Taking the tab event to 
put in speces when in a field leaves the user stuck in that field with no 
obvious way to get out. This is currently a problem with build for 9/26. There 
is no way to continue filling a form once you get into a multiline text firld. 
Tab is currently Broken.
QA Contact Update
QA Contact: bsharma → vladimire
Build reassigning Buster's bugs to Marc.
Assignee: buster → attinasi
Status: ASSIGNED → NEW
There was a lengthy discussion on this issue on the GNOME usability mailinglist.
See: 
http://mail.gnome.org/archives/usability/2001-October/msg00000.html

My opinion on this is, that I *expect* a multiline textfield (and ONLY a
multiline textfield) to accept tabs. When it does not it is very confusing to
me, which is why I ended up writing this comment in the first place. Moving out
of the multiline widget can always be accomplished with Ctrl+Tab, for instance.
Status: NEW → ASSIGNED
->nobody@mozilla.org, attinasi isn't about to spend time on this.
Assignee: attinasi → nobody
Status: ASSIGNED → NEW
Filter on "Nobody_NScomTLD_20080620"
QA Contact: vladimire → layout.form-controls
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.