@@ -10,7 +10,7 @@ import {FocusKeyManager} from '@angular/cdk/a11y';
10
10
import { Directionality } from '@angular/cdk/bidi' ;
11
11
import { coerceBooleanProperty } from '@angular/cdk/coercion' ;
12
12
import { SelectionModel } from '@angular/cdk/collections' ;
13
- import { BACKSPACE , DELETE , LEFT_ARROW , RIGHT_ARROW , UP_ARROW } from '@angular/cdk/keycodes' ;
13
+ import { BACKSPACE , DELETE , LEFT_ARROW , RIGHT_ARROW } from '@angular/cdk/keycodes' ;
14
14
import { startWith } from '@angular/cdk/rxjs' ;
15
15
import {
16
16
AfterContentInit ,
@@ -432,8 +432,8 @@ export class MdChipList implements MdFormFieldControl<any>, ControlValueAccessor
432
432
433
433
let isPrevKey = ( code === ( isRtl ? RIGHT_ARROW : LEFT_ARROW ) ) ;
434
434
let isNextKey = ( code === ( isRtl ? LEFT_ARROW : RIGHT_ARROW ) ) ;
435
- let isBackKey = ( code === BACKSPACE || code == DELETE || code == UP_ARROW || isPrevKey ) ;
436
- // If they are on an empty input and hit backspace/delete/left arrow , focus the last chip
435
+ let isBackKey = code === BACKSPACE ;
436
+ // If they are on an empty input and hit backspace, focus the last chip
437
437
if ( isInputEmpty && isBackKey ) {
438
438
this . _keyManager . setLastItemActive ( ) ;
439
439
event . preventDefault ( ) ;
@@ -504,8 +504,6 @@ export class MdChipList implements MdFormFieldControl<any>, ControlValueAccessor
504
504
if ( focusChip ) {
505
505
focusChip . focus ( ) ;
506
506
}
507
- } else if ( chipsArray . length === 0 ) {
508
- this . _focusInput ( ) ;
509
507
}
510
508
511
509
// Reset our destroyed index
0 commit comments