fix switch statment

This commit is contained in:
KDSBrowne 2017-05-10 11:39:03 -07:00
parent 7e0ff7bf76
commit 73819c9d1d

View File

@ -61,6 +61,16 @@ class UserList extends Component {
element.childNodes[this.counter].focus();
this.counter++;
break;
case 'up':
this.counter--;
element.childNodes[this.counter].tabIndex = 0;
element.childNodes[this.counter].focus();
break;
case 'upLoopUp':
case 'upLoopDown':
this.counter = count - 1;
select();
break;
case 'downLoopDown':
this.counter = -1;
select();
@ -69,20 +79,6 @@ class UserList extends Component {
this.counter = 1;
select();
break;
case 'up':
this.counter--;
element.childNodes[this.counter].tabIndex = 0;
element.childNodes[this.counter].focus();
break;
case 'upLoopUp':
this.counter = count - 1;
select();
break;
case 'upLoopDown':
this.counter = count - 1;
element.childNodes[this.counter].tabIndex = 0;
element.childNodes[this.counter].focus();
break;
}
}