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

Side by Side Diff: chrome/browser/resources/settings/people_page/sync_page.html

Issue 2632783003: MD Settings People: Make Enter key work for Sync Page (Closed)
Patch Set: fix up iron-a11y-keys 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <link rel="import" href="chrome://resources/html/i18n_behavior.html"> 1 <link rel="import" href="chrome://resources/html/i18n_behavior.html">
2 <link rel="import" href="chrome://resources/html/polymer.html"> 2 <link rel="import" href="chrome://resources/html/polymer.html">
3 <link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html"> 3 <link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html">
4 <link rel="import" href="chrome://resources/polymer/v1_0/iron-a11y-keys/iron-a11 y-keys.html">
4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt on.html"> 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt on.html">
5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-toggle-button/pap er-toggle-button.html"> 6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-toggle-button/pap er-toggle-button.html">
6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input .html"> 7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input .html">
7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-radio-button/pape r-radio-button.html"> 8 <link rel="import" href="chrome://resources/polymer/v1_0/paper-radio-button/pape r-radio-button.html">
8 <link rel="import" href="chrome://resources/polymer/v1_0/paper-radio-group/paper -radio-group.html"> 9 <link rel="import" href="chrome://resources/polymer/v1_0/paper-radio-group/paper -radio-group.html">
9 <link rel="import" href="/people_page/sync_browser_proxy.html"> 10 <link rel="import" href="/people_page/sync_browser_proxy.html">
10 <link rel="import" href="/route.html"> 11 <link rel="import" href="/route.html">
11 <link rel="import" href="/settings_shared_css.html"> 12 <link rel="import" href="/settings_shared_css.html">
12 13
13 <dom-module id="settings-sync-page"> 14 <dom-module id="settings-sync-page">
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 <span>$i18nRaw{passphraseResetHint}</span> 222 <span>$i18nRaw{passphraseResetHint}</span>
222 </div> 223 </div>
223 </div> 224 </div>
224 225
225 <template is="dom-if" if="[[creatingNewPassphrase_]]"> 226 <template is="dom-if" if="[[creatingNewPassphrase_]]">
226 <div class="list-frame"> 227 <div class="list-frame">
227 <div id="create-password-box"> 228 <div id="create-password-box">
228 <div class="list-item"> 229 <div class="list-item">
229 <span>$i18nRaw{passphraseExplanationText}</span> 230 <span>$i18nRaw{passphraseExplanationText}</span>
230 </div> 231 </div>
232 <iron-a11y-keys id="keys" keys="enter"
dschuyler 2017/01/17 23:20:11 Should this have a target=""?
tommycli 2017/01/18 00:51:29 I don't think it's necessary. Our other usages don
dschuyler 2017/01/23 20:00:17 Acknowledged.
233 on-keys-pressed="onSaveNewPassphraseTap_">
dschuyler 2017/01/17 23:20:12 Does this work with modified enter key presses or
tommycli 2017/01/18 00:51:30 Unfortunately, yes, it captures modified Enter pre
dschuyler 2017/01/23 20:00:17 Thanks, I agree that trading a P1 for a P3 is a go
234 </iron-a11y-keys>
dschuyler 2017/01/17 23:20:12 Does "esc" work for cancelling focus? Maybe that c
tommycli 2017/01/18 00:51:30 It's not clear to me that esc should blur the inpu
dschuyler 2017/01/23 20:00:17 Acknowledged.
231 <paper-input id="passphraseInput" type="password" 235 <paper-input id="passphraseInput" type="password"
232 value="{{passphrase_}}" 236 value="{{passphrase_}}"
233 placeholder="$i18n{passphrasePlaceholder}" 237 placeholder="$i18n{passphrasePlaceholder}"
234 error-message="$i18n{emptyPassphraseError}"> 238 error-message="$i18n{emptyPassphraseError}">
235 </paper-input> 239 </paper-input>
236 <paper-input id="passphraseConfirmationInput" type="password" 240 <paper-input id="passphraseConfirmationInput" type="password"
237 value="{{confirmation_}}" 241 value="{{confirmation_}}"
238 placeholder="$i18n{passphraseConfirmationPlaceholder}" 242 placeholder="$i18n{passphraseConfirmationPlaceholder}"
239 error-message="$i18n{mismatchedPassphraseError}"> 243 error-message="$i18n{mismatchedPassphraseError}">
240 </paper-input> 244 </paper-input>
(...skipping 15 matching lines...) Expand all
256 <a href="$i18nRaw{syncErrorHelpUrl}" target="_blank"> 260 <a href="$i18nRaw{syncErrorHelpUrl}" target="_blank">
257 $i18n{learnMore} 261 $i18n{learnMore}
258 </a> 262 </a>
259 </span> 263 </span>
260 </div> 264 </div>
261 <div id="existingPassphraseContainer" class="list-item"> 265 <div id="existingPassphraseContainer" class="list-item">
262 <paper-input id="existingPassphraseInput" type="password" 266 <paper-input id="existingPassphraseInput" type="password"
263 value="{{existingPassphrase_}}" 267 value="{{existingPassphrase_}}"
264 placeholder="$i18n{passphrasePlaceholder}" 268 placeholder="$i18n{passphrasePlaceholder}"
265 error-message="$i18n{incorrectPassphraseError}"> 269 error-message="$i18n{incorrectPassphraseError}">
270 <iron-a11y-keys id="keys" keys="enter"
271 on-keys-pressed="onSubmitExistingPassphraseTap_">
272 </iron-a11y-keys>
266 </paper-input> 273 </paper-input>
267 <paper-button id="submitExistingPassphrase" 274 <paper-button id="submitExistingPassphrase"
268 on-tap="onSubmitExistingPassphraseTap_" class="action-button" 275 on-tap="onSubmitExistingPassphraseTap_" class="action-button"
269 disabled="[[!existingPassphrase_]]"> 276 disabled="[[!existingPassphrase_]]">
270 $i18n{submitPassphraseButton} 277 $i18n{submitPassphraseButton}
271 </paper-button> 278 </paper-button>
272 </div> 279 </div>
273 <div id="passphraseRecoverHint" class="list-item"> 280 <div id="passphraseRecoverHint" class="list-item">
274 <span>$i18nRaw{passphraseRecover}</span> 281 <span>$i18nRaw{passphraseRecover}</span>
275 </div> 282 </div>
276 </div> 283 </div>
277 </template> 284 </template>
278 </div> 285 </div>
279 </template> 286 </template>
280 <script src="sync_page.js"></script> 287 <script src="sync_page.js"></script>
281 </dom-module> 288 </dom-module>
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698