Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2035)

Unified Diff: chrome/browser/resources/print_preview/previewarea/margin_control.js

Issue 187813007: Force save changes when Enter is pressed for the controls with buffered updates. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/resources/print_preview/settings/copies_settings.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/print_preview/previewarea/margin_control.js
diff --git a/chrome/browser/resources/print_preview/previewarea/margin_control.js b/chrome/browser/resources/print_preview/previewarea/margin_control.js
index 3f3c78d5c63a540f0855576395b1549e3ec7bc31..8b392af7a91ac62232bf28b939188a317eea5bb9 100644
--- a/chrome/browser/resources/print_preview/previewarea/margin_control.js
+++ b/chrome/browser/resources/print_preview/previewarea/margin_control.js
@@ -421,7 +421,7 @@ cr.define('print_preview', function() {
clearTimeout(this.textTimeout_);
this.textTimeout_ = null;
}
- if (event.keyIdentifier == 'Enter') {
+ if (event.keyCode == 13 /*enter*/) {
this.preTimeoutValue_ = null;
cr.dispatchSimpleEvent(this, MarginControl.EventType.TEXT_CHANGE);
} else {
« no previous file with comments | « no previous file | chrome/browser/resources/print_preview/settings/copies_settings.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698