04-19-2011 12:18 PM
Installed the new 2.0 SDK today and the blackberry.system.event.KEY_BACK button that we are trapping for is now exiting the application in the following situation.
-- Set focus to a input text control, balckberry.focus.setFocus(id);
-- Set focus again to allow for typing. document.getElementById(id).focus();
-- Hit back button and you exit text edit mode.
-- Hit back button again and you exit the app. We are trapping code here to perform a show on a div. This worked properly in sdk 1.5.
04-19-2011 03:26 PM
We were able to work around the problem by calling .blur() on the input element before showing the hidden div.
The main issue we have on OS 6 for text input boxes is that to allow the user to begin typing we have to make 2 focus calls.
First we call the BlackBerry api .SetFocus() and then we have to call the dom element focus() method. When we do this, the user has to click on the back button twice if the text box has focus. Once to leave text input focus and then a second time to fire the back button event.