public class Keyboard extends Object
Constructor and Description |
---|
Keyboard() |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears all keys.
|
void |
press(int keyCode)
Press the specified key code (without releasing it).
|
void |
release(int keyCode)
Releases the specified key code.
|
void |
type(char ch)
Types the specified character.
|
public void type(char ch)
ch
- the characterpublic void press(int keyCode)
KeyboardEvent.DOM_VK_PAGE_DOWN
.keyCode
- the key codepublic void release(int keyCode)
KeyboardEvent.DOM_VK_PAGE_DOWN
.keyCode
- the key code.public void clear()
Copyright © 2002–2017 Gargoyle Software Inc.. All rights reserved.