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
Highlighted
Contributor
Posts: 33
Registered: ‎01-17-2013
My Device: BB10 Dev Alpha Sim
My Carrier: Verizon
Accepted Solution

Prevent tap and hold right menu?

I am having a bit of an issue trying to implement a re-orderable list.

 

I want you to be able to hold an item, and then drag to reorder the list.

This part is done and works. The problem is whenever you tap and hold on the screen, you can a side menu that slides in.

 

This is very useful when taping on an image, but when not, you just get a blank menu, and you have to tap to get rid of it.

 

Is there a way to control this menu?

 

This is for BB10.2 btw.

 

Contributor
Posts: 33
Registered: ‎01-17-2013
My Device: BB10 Dev Alpha Sim
My Carrier: Verizon

Re: Prevent tap and hold right menu?

Found it. That menu is called the context menu, and can be turn on and off via:

blackberry.ui.contextmenu.enabled = false;

Link for docs on it:
https://developer.blackberry.com/html5/apis/blackberry.ui.contextmenu.html