[
https://issues.apache.org/jira/browse/WICKET-1928?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12646604#action_12646604
]
Joakim Örtbrant commented on WICKET-1928:
-----------------------------------------
Replicating the Safari behaviour from AjaxEditableLabel solved this for me:
replace
tag.put("onkeypress", keypress);
with
tag.put("onkeypress", "if (Wicket.Browser.isSafari()) { return;
}; " + keypress);
tag.put("onkeydown", "if (!Wicket.Browser.isSafari()) { return;
}; " + keypress);
in the onComponentTag implementation when adding the EditorAjaxBehavior.
> Enter key submits form in AjaxEditableMultiLineLabel on Safari
> --------------------------------------------------------------
>
> Key: WICKET-1928
> URL: https://issues.apache.org/jira/browse/WICKET-1928
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.4-M3
> Environment: Mac OSX
> Reporter: Joakim Örtbrant
>
> Pressing the Enter key when editing a AjaxEditableMultiLineLabel submits the
> form on Safari instead of inserting a new line
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.