Example usage for com.google.gwt.user.client Event fireNativePreviewEvent

List of usage examples for com.google.gwt.user.client Event fireNativePreviewEvent

Introduction

In this page you can find the example usage for com.google.gwt.user.client Event fireNativePreviewEvent.

Prototype

public static boolean fireNativePreviewEvent(NativeEvent nativeEvent) 

Source Link

Document

Fire a NativePreviewEvent for the native event.

Usage

From source file:org.nsesa.editor.gwt.core.client.ui.rte.ckeditor.CKEditorBubbleUpEventsPlugin.java

License:EUPL

/**
 * Fire a new key up event/*from  www  .  ja v a  2s  . c  o  m*/
 * @param jso {@link JavaScriptObject} representation of {@link KeyHandler}
 */
private void bubbleUpKeyEvent(JavaScriptObject jso) {
    KeyHandler keyHandler = jso.cast();
    NativeEvent nativeEvent = Document.get().createKeyUpEvent(keyHandler.isCtrlKey(), keyHandler.isAltKey(),
            keyHandler.isShiftKey(), keyHandler.isMetaKey(), keyHandler.getKeyCode());

    Event.fireNativePreviewEvent(nativeEvent);

}