Commit 400aec27 authored by alekseys@chromium.org's avatar alekseys@chromium.org

Listen for all input events on copies capability text field.

BUG=264124

Review URL: https://codereview.chromium.org/171433002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251974 0039d316-1c4b-4281-b951-d872f2087c98
parent 3c80d5d4
......@@ -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_);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment