Have the possibility of disabling system-context menu #279
Comments
You can turn it off but I prefer if you turn off the bbui context menu and webworks fixes the context menu on button images ~Nukul From: Nuno Donato [mailto:notifications@github.com] I was just making some experiments with bbUI.js (which has its own implementation of the context menu), and bumped into this problem:
For any user using a webworks app, this could be a terrible experience (and confusing) Could the system context menu be totally disabled somehow, so that when using bbUI.js we use its own implementation? cc @tneilhttps://github.com/tneil — This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful. |
We are talking HTML here, I may be implementing my own UI, how is the context menu going to find out what's a button and what's a real image? Sent from my BlackBerry -----Original Message----- You can turn it off but I prefer if you turn off the bbui context menu and webworks fixes the context menu on button images ~Nukul From: Nuno Donato [mailto:notifications@github.com] I was just making some experiments with bbUI.js (which has its own implementation of the context menu), and bumped into this problem:
For any user using a webworks app, this could be a terrible experience (and confusing) Could the system context menu be totally disabled somehow, so that when using bbUI.js we use its own implementation? cc @tneilhttps://github.com/tneil — This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful. Reply to this email directly or view it on GitHub: |
We are working on this From: Nuno Donato [mailto:notifications@github.com] We are talking HTML here, I may be implementing my own UI, how is the context menu going to find out what's a button and what's a real image? Sent from my BlackBerry -----Original Message----- You can turn it off but I prefer if you turn off the bbui context menu and webworks fixes the context menu on button images ~Nukul From: Nuno Donato [mailto:notifications@github.com] I was just making some experiments with bbUI.js (which has its own implementation of the context menu), and bumped into this problem:
For any user using a webworks app, this could be a terrible experience (and confusing) Could the system context menu be totally disabled somehow, so that when using bbUI.js we use its own implementation? cc @tneilhttps://github.com/tneil — This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful. Reply to this email directly or view it on GitHub: — This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful. |
Custom context menus should be coming in webworks, we are discussing them already here - #184 As per dismissing it case by case this can be done by listening to the contextmenu event and preventing default. Thats what we do on the contextmenu code to prevent context menus on context menus. The advantage to the webworks implementation vs bbui is that it will have deeper integration into the platform. |
Wouldn't it be easier to do the other way around? Assume no context menu and have the developer enable it when needed? |
I suppose if thats what you want, you can set blackberry.ui.contextmenu.enabled to false at the beginning and enable it in the event. You'll just need some sort of mechanism to disable it afterwards, perhaps just a timer would be good enough. |
@nunodonato you can actually catch the event yourself via oncontextmenu event attached to the dom, if you don't want to do what Jeff says. Try the following: window.oncontextmenu = function(evt) { You won't see anything, and you'll prevent us from acting on the event all together. |
Hi John Yes I'm aware of that option, was just wondering about what would be the best default behavior. Thanks! Sent from my BlackBerry -----Original Message----- @nunodonato you can actually catch the event yourself via oncontextmenu event attached to the dom, if you don't want to do what Jeff says. Try the following: window.oncontextmenu = function(evt) { You won't see anything, and you'll prevent us from acting on the event all together. Reply to this email directly or view it on GitHub: |
@kwallis Can we close this as our product decision? |
I was just making some experiments with bbUI.js (which has its own implementation of the context menu), and bumped into this problem:
For any user using a webworks app, this could be a terrible experience (and confusing)
Could the system context menu be totally disabled somehow, so that when using bbUI.js we use its own implementation?
cc @tneil
The text was updated successfully, but these errors were encountered: