| Index: chrome/browser/resources/settings/controls/settings_input.js
|
| diff --git a/chrome/browser/resources/settings/controls/settings_input.js b/chrome/browser/resources/settings/controls/settings_input.js
|
| index 3796fdecfc542cf9eb965d798c2d8aa0f1901fbd..0031a07e242dfa2b87d8bc63595c1096e5a00f19 100644
|
| --- a/chrome/browser/resources/settings/controls/settings_input.js
|
| +++ b/chrome/browser/resources/settings/controls/settings_input.js
|
| @@ -112,15 +112,10 @@ Polymer({
|
| */
|
| onKeydown_: function(event) {
|
| // If pressed enter when input is invalid, do not trigger on-change.
|
| - if (event.key == 'Enter' && this.invalid) {
|
| + if (event.key == 'Enter' && this.invalid)
|
| event.preventDefault();
|
| - return;
|
| - }
|
| -
|
| - if (event.key != 'Escape')
|
| - return;
|
| -
|
| - this.resetValue_();
|
| + else if (event.key == 'Escape')
|
| + this.resetValue_();
|
| },
|
|
|
| /**
|
|
|