1

Is there a way to track the right click menu when clicked over a textarea.

I would like to know if the user selected cut,copy,paste,select all. Also, I can know when the menu is visible by detecting a right mouse click... But how can I know when it's closed?

Thank you.

thedp
  • 8,350
  • 16
  • 53
  • 95

2 Answers2

3

You may find this useful.

Community
  • 1
  • 1
Sarfraz
  • 377,238
  • 77
  • 533
  • 578
0

AFAIK, you can't. But you can replace the default menu with a custom one, over which you have complete control. Check this example, built using the dojo toolkit.

Massimiliano Fliri
  • 823
  • 2
  • 8
  • 14
  • If I use a custom a menu I won't be able to provide copy/paste functionality due to all (except IE) browsers security restrictions. – thedp Dec 23 '09 at 12:45