Hi folks
We're testing out a Simple Edit Layer for our course finder and have stumbled across an anomaly.
If the user hits return while they are editing the content in a text field (that does not have multiple lines) the commit button is envoked and the user is bounced out of the Simple Edit Interface.
Obviously we could educate users not to do that but it looks a bit pants when they do it by mistake.
Is there any way around this?
Thanks
Darren
[quote]
If the user hits return while they are editing the content in a text field (that does not have multiple lines) the commit button is envoked and the user is bounced out of the Simple Edit Interface.
[/quote]
Hey Darren
This is normal for any form you will on the web.
The only way to avoid this is to change your text field to a text area (where the browser allows new lines and carriage returns via keyboard without submitting) or you review potential JavaScript solutions to disable form submit on keypress. I would advise against intercepting this via JS, from a usability/accessibility perspective removing this keybaord access to form submit is bad joojoo.
Cheers
Scotty
Thanks! Went with the first option and changed the field to multiple text.