With the current form configuration, the Cancel button gets placed before the Save button on the node add/edit form. When the Enter key is pressed, the cancel operation is triggered, rather than the expected save operation (which confused me until I realized what happened). Simply adding a weight to the cancel button fixes this issue. The attached patch does that.

CommentFileSizeAuthor
reposition_cancel_button.patch597 bytesoadaeh

Comments

cntlscrut’s picture

Status: Needs review » Fixed

patch tested and applied to 7.x-1.x branch

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.