feathersui / feathersui-starling

User interface components for Starling Framework and Adobe AIR
https://feathersui.com/learn/as3-starling/
Other
914 stars 386 forks source link

TextInput: Using `textEditorFactory` with `TextBlockTextEditor` and double-clicking to select all will not accept any key input afterwards #1829

Open 2jfw opened 3 hours ago

2jfw commented 3 hours ago

For a TextInput and when using textEditorFactory with a TextBlockTextEditor and double-clicking text input to select all will not accept any key input afterwards.

Will work:

var tf : TextInput = new TextInput();
tf.text = "DoubleClickMe";
tf.width = tf.height = 300;

addChild(tf);

Will not work after double clicking and typing:

var tf : TextInput = new TextInput();
tf.text = "DoubleClickMe";
tf.width = tf.height = 300;

tf.textEditorFactory = function () : ITextRenderer {
        var textRenderer : TextBlockTextEditor = new TextBlockTextEditor();

        return textRenderer;
};

addChild(tf);
2jfw commented 3 hours ago

Tracked down to a native textfield focus in event not triggering