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

Side by Side Diff: ui/login/account_picker/user_pod_row.js

Issue 2223293005: Fix bug in switch person window where enter button did not work. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Created 4 years, 4 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @fileoverview User pod row implementation. 6 * @fileoverview User pod row implementation.
7 */ 7 */
8 8
9 cr.define('login', function() { 9 cr.define('login', function() {
10 /** 10 /**
(...skipping 3406 matching lines...) Expand 10 before | Expand all | Expand 10 after
3417 else 3417 else
3418 this.focusPod(this.firstElementChild); 3418 this.focusPod(this.firstElementChild);
3419 3419
3420 e.stopPropagation(); 3420 e.stopPropagation();
3421 } 3421 }
3422 break; 3422 break;
3423 case 'Enter': 3423 case 'Enter':
3424 if (this.focusedPod_) { 3424 if (this.focusedPod_) {
3425 var targetTag = e.target.tagName; 3425 var targetTag = e.target.tagName;
3426 if (e.target == this.focusedPod_.passwordElement || 3426 if (e.target == this.focusedPod_.passwordElement ||
3427 e.target == this.focusedPod_.pinKeyboard.inputElement || 3427 (this.focusedPod_.pinKeyboard &&
3428 e.target == this.focusedPod_.pinKeyboard.inputElement) ||
3428 (targetTag != 'INPUT' && 3429 (targetTag != 'INPUT' &&
3429 targetTag != 'BUTTON' && 3430 targetTag != 'BUTTON' &&
3430 targetTag != 'A')) { 3431 targetTag != 'A')) {
3431 this.setActivatedPod(this.focusedPod_, e); 3432 this.setActivatedPod(this.focusedPod_, e);
3432 e.stopPropagation(); 3433 e.stopPropagation();
3433 } 3434 }
3434 } 3435 }
3435 break; 3436 break;
3436 case 'Escape': 3437 case 'Escape':
3437 if (!this.alwaysFocusSinglePod) 3438 if (!this.alwaysFocusSinglePod)
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
3523 if (pod && pod.multiProfilesPolicyApplied) { 3524 if (pod && pod.multiProfilesPolicyApplied) {
3524 pod.userTypeBubbleElement.classList.remove('bubble-shown'); 3525 pod.userTypeBubbleElement.classList.remove('bubble-shown');
3525 } 3526 }
3526 } 3527 }
3527 }; 3528 };
3528 3529
3529 return { 3530 return {
3530 PodRow: PodRow 3531 PodRow: PodRow
3531 }; 3532 };
3532 }); 3533 });
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