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

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

Issue 2654553004: MD Settings: Update Autofill Credit Card Dialog to accept Enter Key (Closed)
Patch Set: update tests 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
« no previous file with comments | « no previous file | chrome/browser/resources/settings/passwords_and_forms_page/credit_card_edit_dialog.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 93d232e0e9556d175910a56cfb9afcb865305fc8..fabfee030ff30fd9b4c04eeb33f7ee91db560f6a 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,6 +2,7 @@
<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">
@@ -45,11 +46,18 @@
<dialog is="cr-dialog" id="dialog">
<div class="title">[[title_]]</div>
<div class="body">
- <paper-input id="nameInput" label="$i18n{creditCardName}"
- value="{{creditCard.name}}" always-float-label></paper-input>
- <paper-input id="numberInput" label="$i18n{creditCardNumber}"
- value="{{creditCard.cardNumber}}" always-float-label>
- </paper-input>
+ <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
+ on-input="onCreditCardNameOrNumberChanged_">
+ </paper-input>
+ <paper-input id="numberInput" label="$i18n{creditCardNumber}"
+ value="{{creditCard.cardNumber}}" always-float-label
+ on-input="onCreditCardNameOrNumberChanged_">
+ </paper-input>
+ </div>
<label>$i18n{creditCardExpiration}</label>
<span class="md-select-wrapper">
<select class="md-select" id="month" value="[[expirationMonth_]]"
@@ -77,7 +85,7 @@
<paper-button id="cancelButton" class="cancel-button"
on-tap="onCancelButtonTap_">$i18n{cancel}</paper-button>
<paper-button id="saveButton" class="action-button"
- on-tap="onSaveButtonTap_">$i18n{save}</paper-button>
+ on-tap="onSaveButtonTap_" disabled>$i18n{save}</paper-button>
</div>
</dialog>
</template>
« no previous file with comments | « no previous file | chrome/browser/resources/settings/passwords_and_forms_page/credit_card_edit_dialog.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698