Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Custom Ctrl+V handling

    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
    Last edited by darshakh; 12 Jan 2015, 04:45.
Working...
X