Tuesday, April 2, 2013

Get mouse position in Canvas on keyPress?

Hi,

on a MouseDownEvent it is easy to get the mouse coordinates like: evt.getRelativeX(canvas.getElement());

But what about a KeyDownEvent? How can I get the current mouseXY on a KeyEvent, as this does of course not provide a evt.getRelativeX()...

Thanks

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

No comments:

Post a Comment