You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Andreas Andreou (JIRA)" <de...@tapestry.apache.org> on 2008/01/23 19:37:34 UTC
[jira] Updated: (TAPESTRY-1807) Default buttons for forms
[ https://issues.apache.org/jira/browse/TAPESTRY-1807?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andreas Andreou updated TAPESTRY-1807:
--------------------------------------
Fix Version/s: (was: 4.1.4)
4.1.5
> Default buttons for forms
> -------------------------
>
> Key: TAPESTRY-1807
> URL: https://issues.apache.org/jira/browse/TAPESTRY-1807
> Project: Tapestry
> Issue Type: New Feature
> Components: Core Components, Framework
> Affects Versions: 4.1.3
> Reporter: Andreas Andreou
> Fix For: 4.1.5
>
>
> This is to simplify handling of the ENTER key and will allow specifying which button
> should get 'clicked' - it can even apply to form sub-regions.
> Implementation details:
> <div onkeydown="return fireDefaultButton(event, 'derfaultButtonId')">...</div>
> function fireDefaultButton(event, target) {
> if (event.keyCode == 13 && !(event.srcElement && (event.srcElement.tagName.toLowerCase() == "textarea"))) {
> // handle button click
> }
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org