java - Read clipboard data with GWT -
this question has answer here:
- how copy clipboard gwt? 6 answers
i have code have made handle ctrl
+v
browser, works fine need clipboard data this:
event.addnativepreviewhandler(new event.nativepreviewhandler() { @override public void onpreviewnativeevent(event.nativepreviewevent event) { nativeevent ne = event.getnativeevent(); // when ctrl + v pressed if (event.getnativeevent().getkeycode() == 86 && // 'v' event.getnativeevent().getctrlkey() == true) { // need clipboard data } } });
although i'm 1 marked question duplicate, think answers in question may bit out of date. when google, find this discussion. answers in there solve problem jsni remark doesn't work in ff because ff requires manually enabling restrictions. if doesn't help, may have use answers in duplicate.
Comments
Post a Comment