Put focus on PollResultsModal when it shows to avoid changing slides.

This commit is contained in:
Ghazi Triki 2018-06-05 14:59:28 +01:00
parent 1001cc1ecd
commit acc9c2006a

View File

@ -18,13 +18,13 @@ package org.bigbluebutton.modules.polling.views
import mx.controls.HRule;
import mx.controls.Label;
import mx.controls.dataGridClasses.DataGridColumn;
import mx.events.FlexEvent;
import org.as3commons.lang.StringUtils;
import org.bigbluebutton.common.AdvancedLabel;
import org.bigbluebutton.core.PopUpUtil;
import org.bigbluebutton.core.UsersUtil;
import org.bigbluebutton.core.model.users.User2x;
import org.bigbluebutton.core.model.users.Users2x;
import org.bigbluebutton.modules.polling.events.PollStoppedEvent;
import org.bigbluebutton.modules.polling.events.PollUpdatedEvent;
import org.bigbluebutton.modules.polling.events.PollVoteReceivedEvent;
@ -56,6 +56,8 @@ package org.bigbluebutton.modules.polling.views
public function PollResultsModal() {
super();
addEventListener(FlexEvent.SHOW, showEventHandler);
width = 550;
showCloseButton = false;
layout = "vertical";
@ -207,6 +209,10 @@ package org.bigbluebutton.modules.polling.views
_voteArray.refresh();
}
private function showEventHandler(e:FlexEvent):void {
this.setFocus();
}
private function handlePollUpdatedEvent(e:PollUpdatedEvent):void {
var resultData:Array = new Array();
var answers:Array = e.result.answers;