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

Unified Diff: chrome/browser/resources/print_preview/settings/copies_settings.js

Issue 171433002: Listen for all input events on copies capability text field. (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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/print_preview/settings/copies_settings.js
diff --git a/chrome/browser/resources/print_preview/settings/copies_settings.js b/chrome/browser/resources/print_preview/settings/copies_settings.js
index 36ceeb92562996a79dce686de6f76e1e304f5789..dacef4d834fa3910192c3bd073580bd088116055 100644
--- a/chrome/browser/resources/print_preview/settings/copies_settings.js
+++ b/chrome/browser/resources/print_preview/settings/copies_settings.js
@@ -75,8 +75,8 @@ cr.define('print_preview', function() {
this.tracker.add(
this.getChildElement('input.copies'),
- 'keyup',
- this.onTextfieldKeyUp_.bind(this));
+ 'input',
+ this.onTextfieldInput_.bind(this));
this.tracker.add(
this.getChildElement('input.copies'),
'blur',
@@ -175,12 +175,11 @@ cr.define('print_preview', function() {
},
/**
- * Called when a keyup event occurs on the textfield. Starts an input
+ * Called when a input event occurs on the textfield. Starts an input
* timeout.
- * @param {Event} event Contains the pressed key.
* @private
*/
- onTextfieldKeyUp_: function(event) {
+ onTextfieldInput_: function() {
if (this.textfieldTimeout_) {
clearTimeout(this.textfieldTimeout_);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698