Skip to content

<enter> to send should be sensitive to context #4009

@jerlich

Description

@jerlich

Summary

Pressing enter should probably not send if in an unclosed block (e.g. ```) and potentially other contexts.

Steps to reproduce

Mattermost Team Edition 3.3.0

Expected behavior

Matter most gives the option to send on enter or ctrl-enter. I'm in the enter camp. But i think most of us reflexively hit our send keystroke at the end of a line. However, it seems that if you are in an open code block (```) or typing a list, you might want to swap the defaults to better predict intended behavior.

I would recommend an option to swap enter behavior in open blocks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions