Login Register

Override default (browser) right-click menu on Textarea widget

Anybody know how to override the default browser right-click menu for text widgets?

I have a textarea widget that I have hooked a custom right-click menu to, by building the menu and then calling 'myMenu.bindDomNode(myTextarea.domNode.id);'. If I specify border width, color, and style for the Textarea, then I can see my custom menu when I click on the border. However, whenever I click anywhere in the textarea itself, the default browser right-click menu appears instead.

Any ideas would be appreciated...

Thanks.