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
sudeep14
Posts: 15
Registered: ‎10-26-2012
My Device: curve 8520
My Carrier: Airtel

Blackberry Webwork back button override issue in os7

I am having an issue with bb back button and menu. We have override the back button event according to our requirement. It works fine in all the device except for bb7 devices.

The issue is that if I open the menu(using device menu button) and then click on device back button the menu does not close.

Here is the code

blackberry.System.Event.onHardwareKey(blackberry.System.Event.KEY_BACK, goBack);

my goBack() function is simple

 

function goBack(){var res = hist.pop();if(res){    histBlock =true;    gotoObj(res);//does something }else{exit();}}

 

And for menu button i have not attached any Events

Is there any way i can call close menu from goBack(). Please let me know any work around for the same

I am new to bb development using web work,

Please use plain text.
Contributor
sudeep14
Posts: 15
Registered: ‎10-26-2012
My Device: curve 8520
My Carrier: Airtel

Re: Blackberry Webwork back button override issue in os7

PS

Device I am testing in is

Blackberry 9790
7.0 Bundle 2083(v7.0.0.473, platform 9.16.0.33)
Please use plain text.
Developer
Nitish_Pheonix
Posts: 29
Registered: ‎09-17-2012
My Device: 9810, 9800, 9700, 9900, 9300
My Carrier: BSNL

Re: Blackberry Webwork back button override issue in os7

I think there is some problem in the simulator.
May be it will not install well.
Please reinstall the Simulator and check once. Hope it will work fine.

Thanks & Regards,
Himansu

Thanks & Regards,
Nitish_Pheonix

Hit like if the above post is helpful to you.
Please Accept this as Solution if the above post is a solution for you.
Please use plain text.
Contributor
sudeep14
Posts: 15
Registered: ‎10-26-2012
My Device: curve 8520
My Carrier: Airtel

Re: Blackberry Webwork back button override issue in os7

Hi,

 

Thank you for the reply..

 

I am testing it on the real device not in the simulator.

 

Issue is seen when we build the application in BlackBerry WebWorks SDK 2.3.0.9 . i have tested in BlackBerry WebWorks SDK 2.0 it works... i guess it has something to do with sdk version

 

Regards 

 

Sudeep

Please use plain text.