On production, in an embed, I can't click the chat widget during
the voting phase of LOLcaptions. Clicking a button and then the text field works, so it's some sort of funky focus issue. Try this. Unable to duplicate on my local server, so I'll just recheck to see if this works after the next release. git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@815 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
@@ -5,8 +5,12 @@ package com.threerings.flex {
|
||||
|
||||
import flash.events.FocusEvent;
|
||||
|
||||
import flash.text.TextField;
|
||||
|
||||
import mx.controls.TextInput;
|
||||
|
||||
import com.threerings.flash.TextFieldUtil;
|
||||
|
||||
/**
|
||||
* The class name of an image to use as the input prompt.
|
||||
*/
|
||||
@@ -53,6 +57,13 @@ public class ChatInput extends TextInput
|
||||
setStyle("backgroundImage", (show && ("" == text)) ? getStyle("prompt") : undefined);
|
||||
}
|
||||
|
||||
override protected function createChildren () :void
|
||||
{
|
||||
super.createChildren();
|
||||
|
||||
TextFieldUtil.setFocusable(TextField(textField));
|
||||
}
|
||||
|
||||
override protected function focusInHandler (event :FocusEvent) :void
|
||||
{
|
||||
var oldValue :Boolean = textField.selectable;
|
||||
|
||||
Reference in New Issue
Block a user