Merge pull request #234 from mconf/fix-accessibilityProperties-0.81

Fixed chatBox AccessibilityProperties that was seted before being initia...
This commit is contained in:
Chad Pilkey 2013-08-23 06:59:20 -07:00
commit 695ece39c4

View File

@ -72,6 +72,8 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
import mx.collections.ArrayCollection;
import mx.controls.Button;
import mx.core.ScrollPolicy;
import flash.accessibility.AccessibilityProperties;
import org.bigbluebutton.common.LogUtil;
import org.bigbluebutton.core.UsersUtil;
@ -169,6 +171,10 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
txtMsgArea.addEventListener(KeyboardEvent.KEY_UP, handleTextAreaKeyUpEvent);
queryForChatHistory();
if(chatMessagesList.accessibilityProperties == null)
chatMessagesList.accessibilityProperties = new AccessibilityProperties();
chatMessagesList.accessibilityProperties.description = ResourceUtil.getInstance().getString('bbb.accessibility.chat.initialDescription');
if(Capabilities.hasAccessibility)
@ -367,7 +373,7 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
keyCombos[(ResourceUtil.getInstance().getString('bbb.shortcutkey.chat.chatbox.gofirst') as String)] = ShortcutEvent.GOFIRST_MESSAGE;
keyCombos[(ResourceUtil.getInstance().getString('bbb.shortcutkey.chat.chatbox.repeat') as String)] = ShortcutEvent.REPEAT_MESSAGE;
}
public function hotkeyCapture():void{
this.addEventListener(KeyboardEvent.KEY_DOWN, handleKeyDown);
}
@ -377,7 +383,7 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
loadKeyCombos(modifier);
var keyPress:String = (e.ctrlKey ? "control+" : "") + (e.shiftKey ? "shift+" : "") + (e.altKey ? "alt+" : "") + e.keyCode;
if (keyCombos[keyPress]) {
LogUtil.debug("WATERFALL: Caught shortcut in chat box, " + keyCombos[keyPress]);
var event:ShortcutEvent = new ShortcutEvent(keyCombos[keyPress]);