| Index: ui/webui/resources/cr_elements/cr_dialog/cr_dialog.js
|
| diff --git a/ui/webui/resources/cr_elements/cr_dialog/cr_dialog.js b/ui/webui/resources/cr_elements/cr_dialog/cr_dialog.js
|
| index 1f66df481d6c26cd2418ceac0ed1083c9db4330f..7b0d54880169e0d9213c68f8997701e9328560e5 100644
|
| --- a/ui/webui/resources/cr_elements/cr_dialog/cr_dialog.js
|
| +++ b/ui/webui/resources/cr_elements/cr_dialog/cr_dialog.js
|
| @@ -142,6 +142,16 @@ Polymer({
|
| HTMLDialogElement.prototype.close.call(this, 'success');
|
| },
|
|
|
| + /**
|
| + * @private
|
| + * @param {Event} e
|
| + */
|
| + onCloseKeypress_: function(e) {
|
| + // Because the dialog may have a default Enter key handler, prevent
|
| + // keypress events from bubbling up from this element.
|
| + e.stopPropagation();
|
| + },
|
| +
|
| /** @return {!PaperIconButtonElement} */
|
| getCloseButton: function() {
|
| return this.$.close;
|
|
|