use of org.kie.workbench.common.dmn.client.widgets.grid.keyboard.KeyboardOperationEscapeGridCell in project kie-wb-common by kiegroup.
the class ExpressionEditorViewImpl method setupGridPanel.
protected void setupGridPanel() {
final Transform transform = new Transform().scale(VP_SCALE);
gridPanel.getElement().setId("dmn_container_" + com.google.gwt.dom.client.Document.get().createUniqueId());
gridPanel.getViewport().setTransform(transform);
final BaseGridWidgetKeyboardHandler handler = new BaseGridWidgetKeyboardHandler(gridLayer);
addKeyboardOperation(handler, new KeyboardOperationEditCell(gridLayer));
addKeyboardOperation(handler, new KeyboardOperationEscapeGridCell(gridLayer));
addKeyboardOperation(handler, new KeyboardOperationMoveLeft(gridLayer, gridPanel));
addKeyboardOperation(handler, new KeyboardOperationMoveRight(gridLayer, gridPanel));
addKeyboardOperation(handler, new KeyboardOperationMoveUp(gridLayer, gridPanel));
addKeyboardOperation(handler, new KeyboardOperationMoveDown(gridLayer, gridPanel));
addKeyboardOperation(handler, new KeyboardOperationInvokeContextMenuForSelectedCell(gridLayer));
gridPanel.addKeyDownHandler(handler);
gridPanelContainer.clear();
gridPanelContainer.setWidget(gridPanel);
}
Aggregations