From 73819c9d1d5f54de65e864c75f3e5d58b93b635e Mon Sep 17 00:00:00 2001 From: KDSBrowne Date: Wed, 10 May 2017 11:39:03 -0700 Subject: [PATCH] fix switch statment --- .../ui/components/user-list/component.jsx | 24 ++++++++----------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/bigbluebutton-html5/imports/ui/components/user-list/component.jsx b/bigbluebutton-html5/imports/ui/components/user-list/component.jsx index d28fccb208..c5d135a524 100755 --- a/bigbluebutton-html5/imports/ui/components/user-list/component.jsx +++ b/bigbluebutton-html5/imports/ui/components/user-list/component.jsx @@ -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; } }