Creating new entities in comments

When trying to create a new entity while writing a comment (highlight text + cmd+e) pressing cmd+enter closes the comment instead of creating the entity and keeping the comment editing open