| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 }); |
| OLD | NEW |