incubator-flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cframp...@apache.org
Subject svn commit: r1409019 - /incubator/flex/sdk/branches/develop/frameworks/projects/mx/src/mx/controls/DataGrid.as
Date Tue, 13 Nov 2012 23:06:00 GMT
Author: cframpton
Date: Tue Nov 13 23:06:00 2012
New Revision: 1409019

URL: http://svn.apache.org/viewvc?rev=1409019&view=rev
Log:
FLEX-22758.  Fix the target check in the mx:DataGrid keyDownHandler so key navigation works
in all cases.

Modified:
    incubator/flex/sdk/branches/develop/frameworks/projects/mx/src/mx/controls/DataGrid.as

Modified: incubator/flex/sdk/branches/develop/frameworks/projects/mx/src/mx/controls/DataGrid.as
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/frameworks/projects/mx/src/mx/controls/DataGrid.as?rev=1409019&r1=1409018&r2=1409019&view=diff
==============================================================================
--- incubator/flex/sdk/branches/develop/frameworks/projects/mx/src/mx/controls/DataGrid.as
(original)
+++ incubator/flex/sdk/branches/develop/frameworks/projects/mx/src/mx/controls/DataGrid.as
Tue Nov 13 23:06:00 2012
@@ -5057,11 +5057,15 @@ public class DataGrid extends DataGridBa
      */
     override protected function keyDownHandler(event:KeyboardEvent):void
     {
-        if (itemEditorInstance || event.target != event.currentTarget)
+		if (itemEditorInstance || !owns(DisplayObject(event.target)))
+		{
             return;
-
+		}
+		
         if (event.keyCode != Keyboard.SPACE)
+        {
             super.keyDownHandler(event);
+        }
         else if (caretIndex != -1)
         {
             moveSelectionVertically(event.keyCode, event.shiftKey, event.ctrlKey);



Mime
View raw message