From a4904dcd56eeba6eeba98b471bf37479bfa49da0 Mon Sep 17 00:00:00 2001 From: shayannegari Date: Fri, 20 Jun 2008 17:36:30 +0000 Subject: [PATCH] git-svn-id: http://bigbluebutton.googlecode.com/svn/trunk@33 af16638f-c34d-0410-8cfa-b39d5352b314 --- .../chat/view/components/ChatWindow.mxml | 29 +++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/bigbluebutton-client/src/org/bigbluebutton/modules/chat/view/components/ChatWindow.mxml b/bigbluebutton-client/src/org/bigbluebutton/modules/chat/view/components/ChatWindow.mxml index 02345ff2f1..8c67e665d2 100644 --- a/bigbluebutton-client/src/org/bigbluebutton/modules/chat/view/components/ChatWindow.mxml +++ b/bigbluebutton-client/src/org/bigbluebutton/modules/chat/view/components/ChatWindow.mxml @@ -1,7 +1,9 @@ + width="400" height="300" showCloseButton="false" + click="setFocusOn(this.txtMsg || this.txtChatBox)" + focusEnd="setFocusOff()" > " + rm.message + ""; txtChatBox.htmlText += newMessage + "\n"; } + public function setFocusOn(component:UIComponent):void + { + if (component.id == "txtMsg") { + component.setFocus(); + component.drawFocus(true); + } + else + { + this.txtMsg.setFocus(); + this.txtMsg.drawFocus(true); + } + //this.txtMsg.focusManager.showFocusIndicator = true; + } + public function setFocusOff():void + { + //this.txtMsg.setFocus(); + this.txtMsg.cursorManager.hideCursor(); + this.txtMsg.drawFocus(false); + + //this.txtMsg.cursorManager.removeAllCursors(); + } public function sendMessages():void { @@ -41,7 +66,7 @@ ]]> - +