Refined-github: Shift-Enter when posting a PR comment submits instead of adding newline

Created on 31 May 2018  路  3Comments  路  Source: sindresorhus/refined-github

I believe this is a regression in v18.5.27.1609, because I don't remember encountering this issue until the last couple days.

Expected

Given I am reviewing a Pull Request
When I click a line to add a code comment
And I type Shift-Enter
Then it should create a newline
And it should not submit the comment

Actual

Given I am reviewing a Pull Request
When I click a line to add a code comment
And I type Shift-Enter
Then it submits the comment
And when I click Edit to edit the comment
And I type Shift-Enter
Then it creates a newline correctly

Version

18.5.27.1609

Browser

Chrome 66.0.3359.181


I haven't had time to look at the source for what might have changed to cause this, but may be able to in a few days unless someone has an immediate idea of what went awry. As of now, this is forcing me to disable the plugin because I use that feature frequently and this is an annoyance.

Most helpful comment

Looks like you can disable by filename. I added add-keyboard-shortcuts-to-comment-fields to the UI

That disables all of the other keyboard shortcuts on comment fields but I can live with that.

So, I guess we can close this.

Side note: It might be nice to have a better UI around disabling features.

All 3 comments

Oh, that looks like it's a _feature_ - it's in the More Shortcuts section of the README. Is there a way to easily turn that off without having to manually edit the source code?

That's correct @supremebeing7 it's a feature. I'm unsure about whether there's a way to turn it off. Others will have to chime in.

Looks like you can disable by filename. I added add-keyboard-shortcuts-to-comment-fields to the UI

That disables all of the other keyboard shortcuts on comment fields but I can live with that.

So, I guess we can close this.

Side note: It might be nice to have a better UI around disabling features.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sindresorhus picture sindresorhus  路  3Comments

shivapoudel picture shivapoudel  路  3Comments

juliocanares picture juliocanares  路  3Comments

fregante picture fregante  路  3Comments

vanniktech picture vanniktech  路  3Comments