- From: Dave Raggett <dsr@w3.org>
- Date: Wed, 16 Jul 2003 09:27:55 +0100 (BST)
- To: steven@w3.org
- Cc: www-forms@w3.org
Is there anything that can be done to improve the usability of multi-line text entry for XForms? When typing into a multi-line text field, it is hard for users to know what the significance the Enter key has. In some cases the assumption is like a word processor, Enter is used to start a new paragraph and text will be wrapped to fit the appropriate margins. On other cases, the text will be kept as typed and it is important to use the Enter key regularly to avoid very long lines that run straight off the right handside of the page/window. The text input controls don't give you any visual clues as to whether a line break was due to you hitting the Enter key or the result of a line wrapping operation by the input control. If you are used to regularly hitting the Enter key to limit line length, and the forms processor is using the word processor model, the you are unknowlingly splitting your text up into lots of paragraphs. If the forms processor keeps the text as typed, you are later faced with very long lines and being stuck with lots of horizontal scrolling. My feeling is that the text input control needs to know and implement the appropriate assumption. This is beyond what can be expressed with XML Schema, and is more than styling, and as such seems like something that XForms should be able to express as an XForms annotation. My suggestion would be to allow for the following cases: a) Whitespace characters are passed to the forms processor exactly as entered, leaving the semantics of whitespace entirely up to the forms processor, with all the usability problems that entails. b) Enter starts a new paragraph and text will be wrapped within paragraphs as needed for display purposes. (Word processor model) c) What you see is what you get - the Enter key inserts a hard line break, as does wrapping by the text input control. d) Like (c) except auto-wrapping is off, so that all line breaks must be made explicit by hitting the Enter key I have a further suggestion, which is to allow application authors the ability to control whether a multiline text input control grows in height to accomodate the text it contains, or whether it clips and offers some means of scrolling through its contents. I believe that this is a matter of applying the appropriate CSS property, and will involve some coordination with the CSS working group. Text input areas that grow as you type are a nice feature since users are in control of what they see and aren't subject to the imposition by authors of a fixed display area that limits the number of lines visible. In other words, users can glance up and see what they typed without being required to scroll through the text within the text input control. Dave Raggett <dsr@w3.org> W3C lead for voice and multimodal. http://www.w3.org/People/Raggett +44 1225 866240 (or 867351)
Received on Wednesday, 16 July 2003 04:27:52 UTC