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

Unified Diff: chrome/browser/resources/settings/on_startup_page/startup_url_dialog.js

Issue 2653023003: MD Settings: Update some dialogs to accept Enter key. (Closed)
Patch Set: add 3 more similar ones Created 3 years, 11 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
Index: chrome/browser/resources/settings/on_startup_page/startup_url_dialog.js
diff --git a/chrome/browser/resources/settings/on_startup_page/startup_url_dialog.js b/chrome/browser/resources/settings/on_startup_page/startup_url_dialog.js
index c3b619cdae92f5e1738ddac2b7feeea258c9d11d..8b154584777ef71fdf82fca21e9bf4814521eca9 100644
--- a/chrome/browser/resources/settings/on_startup_page/startup_url_dialog.js
+++ b/chrome/browser/resources/settings/on_startup_page/startup_url_dialog.js
@@ -55,6 +55,10 @@ Polymer({
/** @private */
onActionButtonTap_: function() {
+ // This method may be called via keybinding, so we ignore invalid input.
+ if (this.$.actionButton.disabled)
+ return;
+
var whenDone = this.model ?
this.browserProxy_.editStartupPage(this.model.modelIndex, this.url_) :
this.browserProxy_.addStartupPage(this.url_);

Powered by Google App Engine
This is Rietveld 408576698