Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
Contributor
Posts: 30
Registered: ‎02-05-2013
My Device: 9860
My Carrier: Vodafone

Re: bb10 context menu

Hi,

 

I dont have "blackberry.ui.contextmenu" feature declared in my config.xml still long press on image resulting default context menu in my application which I want to disable. Is it possible? If so, how?

 

Thanks.

BlackBerry Development Advisor
Posts: 43
Registered: ‎01-11-2013
My Device: BlackBerry Z10
My Carrier: Rogers

Re: bb10 context menu

You should be able to disable that one yes (you are getting the system context menu in that case.
if you set: blackberry.ui.contextmenu.enabled = false; you should no longer get any contextmenus

Have a look at this page for more details: https://developer.blackberry.com/html5/apis/blackberry.ui.contextmenu.html#.enabled
--
Senior Systems Software Developer - Enterprise R&D

@roryboy

1.Please resolve your thread by clicking the "Accept as Solution" button below the post which solved your problem!
2. If any post helps you please click the like/thumbs up button below the post(s)
Contributor
Posts: 30
Registered: ‎02-05-2013
My Device: 9860
My Carrier: Vodafone

Re: bb10 context menu

It worked, thanks.