flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [50/50] git commit: [flex-asjs] [refs/heads/tlf] - set focus format regardless of composestate
Date Tue, 30 May 2017 19:48:25 GMT
set focus format regardless of composestate


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/f131187c
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/f131187c
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/f131187c

Branch: refs/heads/tlf
Commit: f131187cd9bbdbdff6df365ca5e881bcbd436d82
Parents: 55ce91f
Author: Alex Harui <aharui@apache.org>
Authored: Tue May 30 12:46:43 2017 -0700
Committer: Alex Harui <aharui@apache.org>
Committed: Tue May 30 12:46:43 2017 -0700

----------------------------------------------------------------------
 manualtests/TLFEditTestFlexJS/src/TLFEditor.as | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f131187c/manualtests/TLFEditTestFlexJS/src/TLFEditor.as
----------------------------------------------------------------------
diff --git a/manualtests/TLFEditTestFlexJS/src/TLFEditor.as b/manualtests/TLFEditTestFlexJS/src/TLFEditor.as
index 0437a43..fc6ad76 100644
--- a/manualtests/TLFEditTestFlexJS/src/TLFEditor.as
+++ b/manualtests/TLFEditTestFlexJS/src/TLFEditor.as
@@ -177,17 +177,13 @@ public class TLFEditor extends UIBase
          */
         public function onSetFocus(event:Event):void
         {            
-			trace("set focus");
+			trace("TLFEditor set focus");
 			
             // We are about to set focus on this component.  If it is due to
             // a programmatic focus change we have to programatically do what the
             // mouseOverHandler and the mouseDownHandler do so that the user can 
             // type in this component without using the mouse first.  We need to
             // put a textFlow with a composer in place.
-            if (/*editingMode != EditingMode.READ_ONLY &&*/
-                _textContainerManager.composeState != 
-                TextContainerManager.COMPOSE_COMPOSER)   
-            {
 				trace("begin interaction");
                 var selectionManager:ISelectionManager = _textContainerManager.beginInteraction();
 				selectionManager.focusedSelectionFormat = new SelectionFormat(
@@ -206,7 +202,6 @@ public class TLFEditor extends UIBase
                 selectionManager.refreshSelection();
 				trace("end interaction");
                 _textContainerManager.endInteraction();
-            }
         }
 		
         /**


Mime
View raw message