Skip to content

Reviewing PRs: Ctrl+Enter submits comment instead of starting a review #23241

Closed
@drsybren

Description

@drsybren

Description

When writing an inline comment on a pull request, the "Start review" button is highlighted as the primary button for the text area:

image

However, when pressing Ctrl+Enter on the keyboard, it is interpreted as pressing the "Add single comment" button.

The biggest issue here is that the "Add single comment" button immediately submits the comment. There is no way to undo this, whereas accidentally starting a review does not immediately send something to the PR author, and thus the review can be cancelled at a later time without bothering anyone, in case it was started by accident.

Gitea Version

1.19.0+dev-649-g2093ca517

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

Self-built from Git

Database

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/confirmedIssue has been reviewed and confirmed to be present or accepted to be implementedtype/bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions