This is an automated email from the ASF dual-hosted git repository. aharui pushed a commit to branch feature/MXRoyale in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
commit fdc71510db030bcb7b25bbf48b109e43f327cdf7 Author: Alex Harui <[email protected]> AuthorDate: Tue Apr 3 12:07:29 2018 -0700 handle FocusManager in TextInput --- .../projects/MXRoyale/src/main/royale/mx/controls/TextInput.as | 6 +++--- frameworks/projects/MXRoyale/src/main/royale/mx/core/ITextInput.as | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/TextInput.as b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/TextInput.as index 60ec4cb..043eaa5 100644 --- a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/TextInput.as +++ b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/TextInput.as @@ -1531,11 +1531,11 @@ public class TextInput extends UIComponent implements ITextInput * @private * Focus should always be on the internal TextField. */ + COMPILE::SWF override public function setFocus():void { - if (GOOG::DEBUG) - trace("TextInput.setFocus not implemented"); - //textField.setFocus(); + var textView:TextInputView = view as TextInputView; + textView.textField.stage.focus = textView.textField } /** diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/core/ITextInput.as b/frameworks/projects/MXRoyale/src/main/royale/mx/core/ITextInput.as index b355e13..17e8528 100644 --- a/frameworks/projects/MXRoyale/src/main/royale/mx/core/ITextInput.as +++ b/frameworks/projects/MXRoyale/src/main/royale/mx/core/ITextInput.as @@ -20,10 +20,10 @@ package mx.core { + import mx.managers.IFocusManagerComponent; /* import mx.controls.listClasses.IDropInListItemRenderer; import mx.controls.listClasses.IListItemRenderer; -import mx.managers.IFocusManagerComponent; import mx.styles.IStyleClient; */ @@ -36,7 +36,7 @@ import mx.styles.IStyleClient; * @productversion Flex 4 */ public interface ITextInput - extends IDataRenderer, IUIComponent + extends IDataRenderer, IUIComponent, IFocusManagerComponent { //-------------------------------------------------------------------------- // -- To stop receiving notification emails like this one, please contact [email protected].
