Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Saving Theme changes when pressing enter #8382

Merged
merged 3 commits into from
Jul 15, 2014
Merged

Saving Theme changes when pressing enter #8382

merged 3 commits into from
Jul 15, 2014

Conversation

MiguelCastillo
Copy link
Contributor

@@ -96,7 +96,7 @@ define(function (require, exports, module) {
var attr = $target.attr("data-target");
newSettings[attr] = $target.is(":checked");
})
.on("change", "[data-target]:text", function () {
.on("keyup", "[data-target]:text", function () {
Copy link
Member

Choose a reason for hiding this comment

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

.on("input" should be the preferred HTML5ey way to do it. That will fire regardless of whether the change occurred via keystroke, Paste menu item, IME, etc.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@peterflynn Good point. Let change and test...

dangoor added a commit that referenced this pull request Jul 15, 2014
Saving Theme changes when pressing enter
@dangoor dangoor merged commit 29a4a44 into adobe:master Jul 15, 2014
@dangoor
Copy link
Contributor

dangoor commented Jul 15, 2014

Looks good. Much more pleasant this way!

@MiguelCastillo
Copy link
Contributor Author

@dangoor I agree :)

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

Successfully merging this pull request may close these issues.

3 participants