/** * Creates a key-code event ('keydown' or 'keyup'). * * <p> * While this method may be used to create events directly, it is generally * preferable to use existing helper methods such as * {@link #createKeyDownEvent(boolean, boolean, boolean, boolean, int)} or * {@link #createKeyUpEvent(boolean, boolean, boolean, boolean, int)}. * </p> * * @param type the type of event (e.g., BrowserEvents.KEYDOWN, BrowserEvents.KEYPRESS, etc) * @param ctrlKey <code>true</code> if the ctrl key is depressed * @param altKey <code>true</code> if the alt key is depressed * @param shiftKey <code>true</code> if the shift key is depressed * @param metaKey <code>true</code> if the meta key is depressed * @param keyCode the key-code to be set on the event * @return the event object */ public final NativeEvent createKeyCodeEvent(String type, boolean ctrlKey, boolean altKey, boolean shiftKey, boolean metaKey, int keyCode) { return DOMImpl.impl.createKeyCodeEvent(this, type, ctrlKey, altKey, shiftKey, metaKey, keyCode); }
/** * Creates a key-code event ('keydown' or 'keyup'). * * <p> * While this method may be used to create events directly, it is generally * preferable to use existing helper methods such as * {@link #createKeyDownEvent(boolean, boolean, boolean, boolean, int)} or * {@link #createKeyUpEvent(boolean, boolean, boolean, boolean, int)}. * </p> * * @param type the type of event (e.g., BrowserEvents.KEYDOWN, BrowserEvents.KEYPRESS, etc) * @param ctrlKey <code>true</code> if the ctrl key is depressed * @param altKey <code>true</code> if the alt key is depressed * @param shiftKey <code>true</code> if the shift key is depressed * @param metaKey <code>true</code> if the meta key is depressed * @param keyCode the key-code to be set on the event * @return the event object */ public final NativeEvent createKeyCodeEvent(String type, boolean ctrlKey, boolean altKey, boolean shiftKey, boolean metaKey, int keyCode) { return DOMImpl.impl.createKeyCodeEvent(this, type, ctrlKey, altKey, shiftKey, metaKey, keyCode); }
/** * Creates a key-code event ('keydown' or 'keyup'). * * <p> * While this method may be used to create events directly, it is generally * preferable to use existing helper methods such as * {@link #createKeyDownEvent(boolean, boolean, boolean, boolean, int)} or * {@link #createKeyUpEvent(boolean, boolean, boolean, boolean, int)}. * </p> * * @param type the type of event (e.g., BrowserEvents.KEYDOWN, BrowserEvents.KEYPRESS, etc) * @param ctrlKey <code>true</code> if the ctrl key is depressed * @param altKey <code>true</code> if the alt key is depressed * @param shiftKey <code>true</code> if the shift key is depressed * @param metaKey <code>true</code> if the meta key is depressed * @param keyCode the key-code to be set on the event * @return the event object */ public final NativeEvent createKeyCodeEvent(String type, boolean ctrlKey, boolean altKey, boolean shiftKey, boolean metaKey, int keyCode) { return DOMImpl.impl.createKeyCodeEvent(this, type, ctrlKey, altKey, shiftKey, metaKey, keyCode); }