Some issues using [return] key for confirmation
Moved from Yellowgrass to WebDSL issue.
Submitted by Elmer van Chastelet on 15 January 2013 at 14:29
When entering a tag followed by [return], I get an 404 in firefox 17.0.1
At the log in page, it would be nice if [return]-key forces the log-in action.
Issue Log
This is caused by using a submitlink or ajax submit (using
onclick=
actions), instead of a regular submit (which translates to<input type="submit"
and is invoked when pressing enter). A workaround is needed to emulate the browser form submit behavior, e.g. some Javascript hooked to the form submit. This also needs to be tested in forms with multiple submits and multiple submit variants.
The problem with the
submit
is that it cannot be used with an icon instead of text. A workaround is to have two submits:input(query)[placeholder="Search", class="span2"] submit search(query) [class="btn", style="display:none;"] { "Search" } // is not displayed submitlink search(query) [class="btn"] { iSearch } // icon
The first is not displayed, but catches the enter event, the second is displayed and can be clicked with mouse or touch. It is not clear that there is a better solution due to the limitation of
<input type="submit">
in html.
Log in to post comments