![]() |
|
|
|
|
Issue Type:
|
Sub-task
|
|
Affects Versions:
|
5.2.3 |
|
Assignee:
|
Unassigned |
|
Components:
|
user interaction |
|
Created:
|
03/Apr/14 1:28 PM
|
|
Description:
|
Pressing Enter key should submit a form, the same as pushing the Save or Confirm button. But this shortcut key should not trigger the action if the focus is currently in a textarea or richtextfield, because a user may simply want to add an enter.
It is straightforward to add the ENTER key handling (see BaseDialogPresenter), its hard to prevent it from firing when textarea has focus. Vaadin does not provide a mechanism to know which field has focus.
Failed attempts.
I tried handling the enter key with BaseDialogPresenter#addShortcut method and alternatively with a shortcut on the Confirm button via
Button commitButton = (Button)(editorActionAreaView.getViewForAction(BaseDialog.COMMIT_ACTION_NAME).asVaadinComponent());
commitButton.setClickShortcut(KeyCode.ENTER);
|
|
Fix Versions:
|
5.2.4, 5.3 |
|
Project:
|
Magnolia UI
|
|
Priority:
|
Major
|
|
Reporter:
|
Christopher Zimmermann
|
|
Security Level:
|
Public |
|
|
|
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
----------------------------------------------------------------
For list details, see: http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <
[email protected]>
----------------------------------------------------------------