Example usage for com.google.gwt.event.dom.client HumanInputEvent isAltKeyDown

List of usage examples for com.google.gwt.event.dom.client HumanInputEvent isAltKeyDown

Introduction

In this page you can find the example usage for com.google.gwt.event.dom.client HumanInputEvent isAltKeyDown.

Prototype

public boolean isAltKeyDown() 

Source Link

Document

Is alt key down.

Usage

From source file:com.ait.lienzo.client.core.event.AbstractNodeHumanInputEvent.java

License:Open Source License

public static final boolean isAltKeyDown(final HumanInputEvent<?> event) {
    return ((null != event) && (event.isAltKeyDown()));
}

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 om*/
    }
    if (event.isControlKeyDown()) {
        me.stateMask |= SWT.CONTROL;
    }
    if (event.isAltKeyDown()) {
        me.stateMask |= SWT.ALT;
    }
}