11-18-2008 02:22 PM
Anybody else working on the Storm simulator having similar issue?
- virtual keyboard gets instantiated (for example, when the user clicks on a text field)
- user exits the screen, but the virtual keyboard remains, even though the old screen called setVisibility(HIDE) from the onClose() method
- when the original calling screen gets focus back, it calls setVisibility(HIDE)
- the calling screen also called setVisibility(HIDE_FORCE) from its constructor
...and yet the keyboard remains on the screen.
Solved! Go to Solution.
11-18-2008 06:46 PM
Turns out that if you have a Screen implementation that overrides onFocusNotify(), you will keep the framework from clearing the keyboard.
Adding a call to super.onFocusNotify() clears up the issue.