You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "Renan Fretta (JIRA)" <ji...@apache.org> on 2015/06/11 16:00:12 UTC

[jira] [Created] (FLEX-34888) DataGrid jumping to the next row

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)