form = new DynamicForm();
textItem = new TextItem("EnterText");
textItem.addKeyPressHandler(new KeyPressHandler() {
@Override
public void onKeyPress(KeyPressEvent event) {
if (isCtrlPressed) {
if ("V".equalsIgnoreCase(event.getKeyName())) {
System.out.println("Pasting something");
// here I want to get what is the content in system's clipboard.
//how to access system's clipboard in SmartGwt
}
}
}
});
textItem = new TextItem("EnterText");
textItem.addKeyPressHandler(new KeyPressHandler() {
@Override
public void onKeyPress(KeyPressEvent event) {
if (isCtrlPressed) {
if ("V".equalsIgnoreCase(event.getKeyName())) {
System.out.println("Pasting something");
// here I want to get what is the content in system's clipboard.
//how to access system's clipboard in SmartGwt
}
}
}
});