com.vaadin.polymer.iron.widget.event.KeysPressedEvent Maven / Gradle / Ivy
The newest version!
/*
* This code was generated with Vaadin Web Component GWT API Generator,
* from iron-a11y-keys project by The Polymer Authors
* that is licensed with http://polymer.github.io/LICENSE.txt license.
*/
package com.vaadin.polymer.iron.widget.event;
import com.google.gwt.event.dom.client.DomEvent;
import com.google.gwt.core.client.JsArray;
import com.google.gwt.core.client.JavaScriptObject;
/**
*
*/
public class KeysPressedEvent extends DomEvent {
public static Type TYPE = new Type(
com.vaadin.polymer.iron.event.KeysPressedEvent.NAME, new KeysPressedEvent());
public KeysPressedEvent() {
}
public Type getAssociatedType() {
return TYPE;
}
protected void dispatch(KeysPressedEventHandler handler) {
handler.onKeysPressed(this);
}
public com.vaadin.polymer.iron.event.KeysPressedEvent getPolymerEvent() {
return (com.vaadin.polymer.iron.event.KeysPressedEvent)super.getNativeEvent();
}
/**
*
*/
public JavaScriptObject getDetail() {
return getPolymerEvent().getDetail().getDetail();
}
/**
* true if shift key is pressed
*/
public boolean getShift() {
return getPolymerEvent().getDetail().getShift();
}
/**
* true if ctrl key is pressed
*/
public boolean getCtrl() {
return getPolymerEvent().getDetail().getCtrl();
}
/**
* true if meta key is pressed
*/
public boolean getMeta() {
return getPolymerEvent().getDetail().getMeta();
}
/**
* true if alt key is pressed
*/
public boolean getAlt() {
return getPolymerEvent().getDetail().getAlt();
}
/**
* the normalized key
*/
public String getKey() {
return getPolymerEvent().getDetail().getKey();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy