List of usage examples for com.google.gwt.event.dom.client HumanInputEvent isControlKeyDown
public boolean isControlKeyDown()
control
key down. From source file:com.ait.lienzo.client.core.event.AbstractNodeHumanInputEvent.java
License:Open Source License
public static final boolean isControlKeyDown(final HumanInputEvent<?> event) { return ((null != event) && (event.isControlKeyDown())); }
From source file:com.allen_sauer.gwt.dnd.client.MouseDragHandler.java
License:Apache License
private boolean toggleKey(HumanInputEvent<?> event) { return event.isControlKeyDown() || event.isMetaKeyDown(); }
From source file:org.eclipse.swt.widgets.Widget.java
License:Open Source License
private static void addStateMasks(HumanInputEvent event, MouseEvent me) { if (event.isShiftKeyDown()) { me.stateMask |= SWT.SHIFT;/*from w ww. j a v a2 s .c o m*/ } if (event.isControlKeyDown()) { me.stateMask |= SWT.CONTROL; } if (event.isAltKeyDown()) { me.stateMask |= SWT.ALT; } }
From source file:org.geomajas.gwt.client.controller.PanController.java
License:Open Source License
@Override public void onDown(HumanInputEvent<?> event) { if (event.isControlKeyDown() || event.isShiftKeyDown()) { zooming = true;//from w w w.j ava 2 s . c o m zoomToRectangleController.onDown(event); } else if (!isRightMouseButton(event)) { panning = true; mapWidget.getMapModel().getMapView().setPanDragging(true); begin = getLocation(event, RenderSpace.SCREEN); if (!isShowCursorOnMove()) { mapWidget.setCursor(Cursor.MOVE); } } lastClickPosition = getLocation(event, RenderSpace.WORLD); }
From source file:org.geomajas.gwt2.client.controller.FeatureSelectionController.java
License:Open Source License
@Override public void onDown(HumanInputEvent<?> event) { switch (selectionMethod) { case CLICK_AND_DRAG: selectionRectangleController.onDown(event); break;// w ww .j ava 2s . c o m default: onDownLocation = getLocation(event, RenderSpace.SCREEN); if (!event.isShiftKeyDown() && !event.isControlKeyDown()) { super.onDown(event); } } }
From source file:org.geomajas.gwt2.client.controller.FeatureSelectionController.java
License:Open Source License
@Override public void onUp(HumanInputEvent<?> event) { switch (selectionMethod) { case CLICK_AND_DRAG: if (isDownPosition(event)) { searchAtLocation(getLocation(event, RenderSpace.WORLD), event.isShiftKeyDown()); selectionRectangleController.cleanup(); } else {/* w w w. ja v a 2 s .co m*/ selectionRectangleController.onUp(event); } break; case CLICK_ONLY: stopPanning(null); if (!event.isShiftKeyDown() && !event.isControlKeyDown()) { super.onUp(event); } if (isDownPosition(event)) { searchAtLocation(getLocation(event, RenderSpace.WORLD), event.isShiftKeyDown()); } break; default: stopPanning(null); if (!event.isShiftKeyDown() && !event.isControlKeyDown()) { super.onUp(event); } if (isDownPosition(event)) { searchAtLocation(getLocation(event, RenderSpace.WORLD), false); } } }
From source file:org.geomajas.gwt2.client.controller.NavigationController.java
License:Open Source License
@Override public void onDown(HumanInputEvent<?> event) { if (event.isControlKeyDown() || event.isShiftKeyDown()) { zooming = true;//from w w w . j av a 2 s . c o m } else if (!isRightMouseButton(event)) { dragging = true; dragOrigin = getLocation(event, RenderSpace.SCREEN); mapPresenter.setCursor("move"); } lastClickPosition = getLocation(event, RenderSpace.WORLD); }
From source file:org.geomajas.puregwt.client.controller.FeatureSelectionController.java
License:Open Source License
@Override public void onUp(HumanInputEvent<?> event) { switch (selectionMethod) { case CLICK_AND_DRAG: if (isDownPosition(event)) { searchAtLocation(getLocation(event, RenderSpace.WORLD), event.isShiftKeyDown()); selectionRectangleController.cleanup(); } else {//from w ww.j av a 2s . c o m selectionRectangleController.onUp(event); } break; default: stopPanning(null); if (!event.isShiftKeyDown() && !event.isControlKeyDown()) { super.onUp(event); } if (isDownPosition(event)) { searchAtLocation(getLocation(event, RenderSpace.WORLD), event.isShiftKeyDown()); } } }