Suggestion: what about registering a lost focus listener that sets
some global variable when it loses fcous. Your cut/copy/paste buttons
could thencheck the glboal to figure out the last target the user
actually had.

On Aug 13, 7:40 am, Vemuri Karthik <karthik...@gmail.com> wrote:
> Hi,
>
> I am trying to implement the cut, copy and paste functionality for a
> page that has around 70 widgets including text boxes, list boxes,
> labels, containers, panels and so on. The cut, copy and paste buttons
> are part of these. When a User selects text in some text box in the
> page and clicks on copy, the text box loses focus and the copy button
> now has it. I need the text to call a method that has some Javascript
> call in it like:
>
> $wnd.window.clipboardData.setData("Text",text);
>
> In order for me to do that I need text from the text box and because
> the copy button now has it, I do not know where it has been selected
> from.
>
> Can anyone let me know if they have done anything similar before using
> GWT?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to