Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #1455 - prevent shortkeys to fire in comment textarea #1464

Merged
merged 4 commits into from
Mar 30, 2017

Conversation

zoepage
Copy link
Member

@zoepage zoepage commented Mar 30, 2017

No description provided.

@zoepage
Copy link
Member Author

zoepage commented Mar 30, 2017

r? @miketaylr

@zoepage zoepage changed the title Fixes #1455 - prevent shortkeys to fire in comment textare Fixes #1455 - prevent shortkeys to fire in comment textarea Mar 30, 2017
@miketaylr
Copy link
Member

(I think this needs to be rebased against latest master...)

So, it turns out this regression was introduced by #1431... and it was my suggestion to use mousetrap to handle ctrl+enter... which meant the two existing shortcuts would work. Oops. 🙈

This looks good, but we should rename the labelWarp to something else like openEditor or editLabels, IMO.

Copy link
Member

@miketaylr miketaylr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r+

@@ -24,9 +24,9 @@ issues.LabelsView = Backbone.View.extend({
"click .js-LabelEditorLauncher.is-active": "closeEditor"
},
keyboardEvents: {
"l": "labelWrap"
"l": "labelWarp"

This comment was marked as abuse.

This comment was marked as abuse.

@miketaylr
Copy link
Member

I'll file a followup issue for the renaming, that's a very good "good first bug". :)

@miketaylr miketaylr merged commit 37fa4d2 into master Mar 30, 2017
@miketaylr miketaylr deleted the issues/1455/2 branch March 30, 2017 15:43
@zoepage
Copy link
Member Author

zoepage commented Mar 30, 2017

@miketaylr you merged, so no rebase? :)

@miketaylr
Copy link
Member

@miketaylr you merged, so no rebase? :)

Yeah, sorry -- the merge applied cleanly. All good!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants