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

Unified Diff: chrome/browser/resources/settings/passwords_and_forms_page/credit_card_edit_dialog.html

Issue 2795353002: WebUI: For cr-dialog, handle Enter keys in paper-inputs. (Closed)
Patch Set: update tests Created 3 years, 8 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/passwords_and_forms_page/credit_card_edit_dialog.html
diff --git a/chrome/browser/resources/settings/passwords_and_forms_page/credit_card_edit_dialog.html b/chrome/browser/resources/settings/passwords_and_forms_page/credit_card_edit_dialog.html
index c58be1787feedfe19f052de1ab4c01fd1625c006..3c024fb7ea37d5e9f16c480510e8aa63f01a5101 100644
--- a/chrome/browser/resources/settings/passwords_and_forms_page/credit_card_edit_dialog.html
+++ b/chrome/browser/resources/settings/passwords_and_forms_page/credit_card_edit_dialog.html
@@ -2,7 +2,6 @@
<link rel="import" href="chrome://resources/html/polymer.html">
<link rel="import" href="chrome://resources/html/i18n_behavior.html">
<link rel="import" href="chrome://resources/html/md_select_css.html">
-<link rel="import" href="chrome://resources/polymer/v1_0/iron-a11y-keys/iron-a11y-keys.html">
<link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-button.html">
<link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input.html">
<link rel="import" href="../settings_vars_css.html">
@@ -46,18 +45,14 @@
<dialog is="cr-dialog" id="dialog" close-text="$i18n{close}">
<div class="title">[[title_]]</div>
<div class="body">
- <div>
- <iron-a11y-keys keys="enter" on-keys-pressed="onSaveButtonTap_">
- </iron-a11y-keys>
- <paper-input id="nameInput" label="$i18n{creditCardName}"
- value="{{creditCard.name}}" always-float-label autofocus
- on-input="onCreditCardNameOrNumberChanged_">
- </paper-input>
- <paper-input id="numberInput" label="$i18n{creditCardNumber}"
- value="{{creditCard.cardNumber}}" always-float-label
- on-input="onCreditCardNameOrNumberChanged_">
- </paper-input>
- </div>
+ <paper-input id="nameInput" label="$i18n{creditCardName}"
+ value="{{creditCard.name}}" always-float-label autofocus
+ on-input="onCreditCardNameOrNumberChanged_">
+ </paper-input>
+ <paper-input id="numberInput" label="$i18n{creditCardNumber}"
+ value="{{creditCard.cardNumber}}" always-float-label
+ on-input="onCreditCardNameOrNumberChanged_">
+ </paper-input>
<label>$i18n{creditCardExpiration}</label>
<span class="md-select-wrapper">
<select class="md-select" id="month" value="[[expirationMonth_]]"

Powered by Google App Engine
This is Rietveld 408576698