java - Read clipboard data with GWT -


this question has answer here:

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

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -