function handleSpaceAndEnter(oTable, oEvent) {
		var oCellInfo = TableUtils.getCellInfo(oEvent.target);

		// Select/Deselect all.
		if (oCellInfo.isOfType(CellType.COLUMNROWHEADER)) {
			oTable._getSelectionPlugin().onHeaderSelectorPress();

		// Expand/Collapse group.
		} else if (KeyboardDelegate._allowsToggleExpandedState(oTable, oEvent.target)) {
			getRowByDomRef(oTable, oEvent.target).toggleExpandedState();

		// Select/Deselect row.
		} else if (oCellInfo.isOfType(CellType.ROWHEADER)) {
			selectItems();

		} else if (oCellInfo.isOfType(CellType.DATACELL | CellType.ROWACTION)) {
			// The action mode should only be entered when cellClick is not handled and no selection is performed.
			var bEnterActionMode = !oTable.hasListeners("cellClick");

			// Fire the cell click event.
			if (!oTable._findAndfireCellEvent(oTable.fireCellClick, oEvent)) {

				// Select/Deselect row.
				if (TableUtils.isRowSelectionAllowed(oTable)) {
					selectItems();
					bEnterActionMode = false;
				}
			}

			if (bEnterActionMode) {
				var $InteractiveElements = TableUtils.getInteractiveElements(oEvent.target);
				if ($InteractiveElements) {
					oTable._getKeyboardExtension().setActionMode(true);
				}
			}
		}

		function selectItems() {
			var _doSelect = null;
			if (oTable._legacyMultiSelection) {
				_doSelect = function(iRowIndex) {
					oTable._legacyMultiSelection(iRowIndex, oEvent);
					return true;
				};
			}
			TableUtils.toggleRowSelection(oTable, oEvent.target, null, _doSelect);
		}
	}
/**
	 * Handler which is called when the Space or Enter keys are pressed.
	 * Opening the column context menu is not handled here, because pressing the ENTER key triggers sapenter on keydown. The column header should
	 * only be opened on keyup.
	 *
	 * @param {sap.ui.table.Table} oTable Instance of the table.
	 * @param {jQuery.Event} oEvent The event object.
	 */
Handler which is called when the Space or Enter keys are pressed.
Opening the column context menu is not handled here, because pressing the ENTER key triggers sapenter on keydown. The column header should
only be opened on keyup.

@param {sap.ui.table.Table} oTable Instance of the table.
@param {jQuery.Event} oEvent The event object.
Handler which is called when the Space or Enter keys are pressed . Opening the column context menu is not handled here because pressing the ENTER key triggers sapenter on keydown . The column header should only be opened on keyup . @param { sap . ui . table . Table } oTable Instance of the table . @param { jQuery . Event } oEvent The event object .
function handleSpaceAndEnter(oTable, oEvent) {
		var oCellInfo = TableUtils.getCellInfo(oEvent.target);
		if (oCellInfo.isOfType(CellType.COLUMNROWHEADER)) {
			oTable._getSelectionPlugin().onHeaderSelectorPress();
		} else if (KeyboardDelegate._allowsToggleExpandedState(oTable, oEvent.target)) {
			getRowByDomRef(oTable, oEvent.target).toggleExpandedState();
		} else if (oCellInfo.isOfType(CellType.ROWHEADER)) {
			selectItems();
		} else if (oCellInfo.isOfType(CellType.DATACELL | CellType.ROWACTION)) {
			var bEnterActionMode = !oTable.hasListeners("cellClick");
			if (!oTable._findAndfireCellEvent(oTable.fireCellClick, oEvent)) {
				if (TableUtils.isRowSelectionAllowed(oTable)) {
					selectItems();
					bEnterActionMode = false;
				}
			}
			if (bEnterActionMode) {
				var $InteractiveElements = TableUtils.getInteractiveElements(oEvent.target);
				if ($InteractiveElements) {
					oTable._getKeyboardExtension().setActionMode(true);
				}
			}
		}
		function selectItems() {
			var _doSelect = null;
			if (oTable._legacyMultiSelection) {
				_doSelect = function(iRowIndex) {
					oTable._legacyMultiSelection(iRowIndex, oEvent);
					return true;
				};
			}
			TableUtils.toggleRowSelection(oTable, oEvent.target, null, _doSelect);
		}
	}
function handleSpaceAndEnter ( oTable , oEvent ) { var oCellInfo = TableUtils . getCellInfo ( oEvent . target ) ; if ( oCellInfo . isOfType ( CellType . COLUMNROWHEADER ) ) { oTable . _getSelectionPlugin ( ) . onHeaderSelectorPress ( ) ; } else if ( KeyboardDelegate . _allowsToggleExpandedState ( oTable , oEvent . target ) ) { getRowByDomRef ( oTable , oEvent . target ) . toggleExpandedState ( ) ; } else if ( oCellInfo . isOfType ( CellType . ROWHEADER ) ) { selectItems ( ) ; } else if ( oCellInfo . isOfType ( CellType . DATACELL | CellType . ROWACTION ) ) { var bEnterActionMode = ! oTable . hasListeners ( "cellClick" ) ; if ( ! oTable . _findAndfireCellEvent ( oTable . fireCellClick , oEvent ) ) { if ( TableUtils . isRowSelectionAllowed ( oTable ) ) { selectItems ( ) ; bEnterActionMode = false ; } } if ( bEnterActionMode ) { var $InteractiveElements = TableUtils . getInteractiveElements ( oEvent . target ) ; if ( $InteractiveElements ) { oTable . _getKeyboardExtension ( ) . setActionMode ( true ) ; } } } function selectItems ( ) { var _doSelect = null ; if ( oTable . _legacyMultiSelection ) { _doSelect = function ( iRowIndex ) { oTable . _legacyMultiSelection ( iRowIndex , oEvent ) ; return true ; } ; } TableUtils . toggleRowSelection ( oTable , oEvent . target , null , _doSelect ) ; } }
Handler which is called when the Space or Enter keys are pressed.
Handler which is called when the Space or Enter keys are pressed .
// Select/Deselect all. // Expand/Collapse group. // Select/Deselect row. // The action mode should only be entered when cellClick is not handled and no selection is performed. // Fire the cell click event. // Select/Deselect row.