Skip to content

Commit 0d01fb9

Browse files
Check if accessibility is supported
1 parent 8697034 commit 0d01fb9

File tree

4 files changed

+32
-9
lines changed

4 files changed

+32
-9
lines changed

bigbluebutton-client/src/org/bigbluebutton/modules/chat/views/ChatBox.mxml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,8 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
172172
// Listen for the ENTER key to send the message.
173173
txtMsgArea.addEventListener(KeyboardEvent.KEY_UP, handleTextAreaKeyUpEvent);
174174
175-
Accessibility.updateProperties();
175+
if(Capabilities.hasAccessibility)
176+
Accessibility.updateProperties();
176177
177178
queryForChatHistory();
178179
}
@@ -476,7 +477,8 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
476477
chatMessagesList.accessibilityProperties.description += " ";
477478
}
478479
}
479-
Accessibility.updateProperties();
480+
if(Capabilities.hasAccessibility)
481+
Accessibility.updateProperties();
480482
navToFirst = false;
481483
navToLatest = false;
482484
spacerNeeded = false;

bigbluebutton-client/src/org/bigbluebutton/modules/present/managers/PresentManager.as

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,21 +50,32 @@ package org.bigbluebutton.modules.present.managers
5050
}
5151

5252
public function handleStartModuleEvent(e:PresentModuleEvent):void{
53-
if (presentWindow != null) return;
53+
LogUtil.debug("markos: begin handleStartModuleEvent");
54+
if (presentWindow != null){
55+
LogUtil.debug("markos: presentwindow is NOT null");
56+
return;
57+
}
58+
LogUtil.debug("markos: before presentwindow");
5459
presentWindow = new PresentationWindow();
60+
LogUtil.debug("markos: presentwindow is created");
5561
presentWindow.visible = (e.data.showPresentWindow == "true");
62+
LogUtil.debug("markos: presentwindow is visible");
5663
presentWindow.showControls = (e.data.showWindowControls == "true");
64+
LogUtil.debug("markos: presentwindow shows controls");
5765
openWindow(presentWindow);
66+
LogUtil.debug("markos: finish handleStartModuleEvent");
5867
}
5968

6069
public function handleStopModuleEvent():void{
6170
presentWindow.close();
6271
}
6372

64-
private function openWindow(window:IBbbModuleWindow):void{
73+
private function openWindow(window:IBbbModuleWindow):void{
74+
LogUtil.debug("markos: begin openwindow");
6575
var event:OpenWindowEvent = new OpenWindowEvent(OpenWindowEvent.OPEN_WINDOW_EVENT);
6676
event.window = window;
67-
globalDispatcher.dispatchEvent(event);
77+
globalDispatcher.dispatchEvent(event);
78+
LogUtil.debug("markos: finish openwindow");
6879
}
6980

7081
public function handleOpenUploadWindow(e:UploadEvent):void{

bigbluebutton-client/src/org/bigbluebutton/modules/present/ui/views/PresentationWindow.mxml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,16 +149,22 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
149149
private var localDispatcher:Dispatcher = new Dispatcher();
150150
151151
private function init():void{
152+
LogUtil.debug("markos: begin init");
152153
presentOptions = new PresentOptions();
153154
baseIndex = presentOptions.baseTabIndex;
155+
LogUtil.debug("markos: end init");
154156
}
155157
156158
private function onCreationComplete():void{
159+
LogUtil.debug("markos: begin oncreationcomplete");
157160
thumbY = this.height - 160;
158-
bindKeyboardEvents();
161+
162+
bindKeyboardEvents();
163+
LogUtil.debug("markos: passed bindKeyboardEvents");
159164
this.addEventListener(MDIWindowEvent.RESIZE_END, onResizeEndEvent);
160165
slideView.addEventListener(ListEvent.ITEM_ROLL_OVER, onItemRollOver);
161166
resourcesChanged();
167+
LogUtil.debug("markos: passed resourcesChanged");
162168
163169
titleBarOverlay.tabIndex = baseIndex;
164170
@@ -168,6 +174,7 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
168174
169175
slideView.slideLoader.tabIndex = baseIndex+4;
170176
hotkeyCapture();
177+
LogUtil.debug("markos: finish oncreationcomplete");
171178
}
172179
173180
private function hotkeyCapture():void{
@@ -584,7 +591,8 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
584591
closeBtn.accessibilityName = ResourceUtil.getInstance().getString("bbb.presentation.closeBtn.accessibilityName");
585592
}
586593
587-
Accessibility.updateProperties();
594+
if(Capabilities.hasAccessibility)
595+
Accessibility.updateProperties();
588596
}
589597
590598
private function localeChanged(e:LocaleChangeEvent):void{

bigbluebutton-client/src/org/bigbluebutton/modules/present/ui/views/SlideView.mxml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,8 +308,10 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
308308
*/
309309
private function handleSlideLoadedEvent(e:SlideEvent):void{
310310
slideLoader.source = e.slide;
311-
slideLoader.accessibilityProperties.description = e.slideText;
312-
Accessibility.updateProperties()
311+
if(Capabilities.hasAccessibility){
312+
slideLoader.accessibilityProperties.description = e.slideText;
313+
Accessibility.updateProperties()
314+
}
313315
}
314316
315317
/**

0 commit comments

Comments
 (0)