flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Renan Fretta (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FLEX-34888) DataGrid jumping to the next row
Date Thu, 11 Jun 2015 14:00:12 GMT
Renan Fretta created FLEX-34888:
-----------------------------------

             Summary: DataGrid jumping to the next row
                 Key: FLEX-34888
                 URL: https://issues.apache.org/jira/browse/FLEX-34888
             Project: Apache Flex
          Issue Type: Bug
          Components: mx: DataGrid
    Affects Versions: Apache Flex 4.14.1
            Reporter: Renan Fretta


When you press ZERO in an itemRenderer the DataGrid, the Flex is jumping to the next row.

public class MyCorrectionDataGrid extends DataGrid {
     override protected function keyDownHandler(event:KeyboardEvent):void {
			if (itemEditorInstance || !owns(DisplayObject(event.target))) {
				return;
			}
			if (event.keyCode == 48 || event.keyCode == 96) {
				return;
			}
			if (event.keyCode != Keyboard.SPACE) {
				super.keyDownHandler(event);
			} else if (caretIndex != -1) {
				moveSelectionVertically(event.keyCode, event.shiftKey, event.ctrlKey);
			}
			return;
		}
}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message