[ 
https://issues.apache.org/jira/browse/TAPESTRY-1807?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andreas Andreou updated TAPESTRY-1807:
--------------------------------------

    Priority: Minor  (was: Major)

> 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
>            Priority: Minor
>             Fix For: 4.1.7
>
>
> 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.

Reply via email to