Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Custom Ctrl+V handling

$
0
0
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
}
}
}
});

Attached Files
File Type: java GWTTest.java (1.4 KB)

Viewing all articles
Browse latest Browse all 4756

Trending Articles