Prevent enter key from adding new blank notes

When editing existing notes, Enter deletes blank notes.

When editing new notes, Enter adds blank notes.

This commit ignores Enter key presses when editing new notes if they are blank.