Steps to reproduce:
- Go to /xwiki/bin/view/XWiki/XWikiClasses
- Create a class named "Test"
- Go to /xwiki/bin/edit/XWiki/TestClass?editor=class
- Next to "Add new property", type "foo"
- Press enter
Expected results: The new property should be added as though the Add button had been clicked.
Actual results: The new property is discarded and a preview page is shown as though Alt+P had been pressed.