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

Side by Side Diff: third_party/polymer/components/paper-input/paper-input-behavior.html

Issue 2113853002: Run bower update (Closed) Base URL: https://github.com/catapult-project/catapult@polymer10-migration
Patch Set: Created 4 years, 5 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
OLDNEW
1 <!-- 1 <!--
2 @license 2 @license
3 Copyright (c) 2015 The Polymer Project Authors. All rights reserved. 3 Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
4 This code may only be used under the BSD style license found at http://polymer.g ithub.io/LICENSE.txt 4 This code may only be used under the BSD style license found at http://polymer.g ithub.io/LICENSE.txt
5 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt 5 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6 The complete set of contributors may be found at http://polymer.github.io/CONTRI BUTORS.txt 6 The complete set of contributors may be found at http://polymer.github.io/CONTRI BUTORS.txt
7 Code distributed by Google as part of the polymer project is also 7 Code distributed by Google as part of the polymer project is also
8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN TS.txt 8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN TS.txt
9 --> 9 -->
10 10
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after
439 * @return {boolean} 439 * @return {boolean}
440 */ 440 */
441 validate: function() { 441 validate: function() {
442 return this.inputElement.validate(); 442 return this.inputElement.validate();
443 }, 443 },
444 444
445 /** 445 /**
446 * Forward focus to inputElement. Overriden from IronControlState. 446 * Forward focus to inputElement. Overriden from IronControlState.
447 */ 447 */
448 _focusBlurHandler: function(event) { 448 _focusBlurHandler: function(event) {
449 if (this._shiftTabPressed)
450 return;
451
452 Polymer.IronControlState._focusBlurHandler.call(this, event); 449 Polymer.IronControlState._focusBlurHandler.call(this, event);
453 450
454 // Forward the focus to the nested input. 451 // Forward the focus to the nested input.
455 if (this.focused) 452 if (this.focused && !this._shiftTabPressed)
456 this._focusableElement.focus(); 453 this._focusableElement.focus();
457 }, 454 },
458 455
459 /** 456 /**
460 * Handler that is called when a shift+tab keypress is detected by the menu. 457 * Handler that is called when a shift+tab keypress is detected by the menu.
461 * 458 *
462 * @param {CustomEvent} event A key combination event. 459 * @param {CustomEvent} event A key combination event.
463 */ 460 */
464 _onShiftTabDown: function(event) { 461 _onShiftTabDown: function(event) {
465 var oldTabIndex = this.getAttribute('tabindex'); 462 var oldTabIndex = this.getAttribute('tabindex');
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
535 } 532 }
536 } 533 }
537 534
538 /** @polymerBehavior */ 535 /** @polymerBehavior */
539 Polymer.PaperInputBehavior = [ 536 Polymer.PaperInputBehavior = [
540 Polymer.IronControlState, 537 Polymer.IronControlState,
541 Polymer.IronA11yKeysBehavior, 538 Polymer.IronA11yKeysBehavior,
542 Polymer.PaperInputBehaviorImpl 539 Polymer.PaperInputBehaviorImpl
543 ]; 540 ];
544 </script> 541 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698