Affects Version/s: Release 2.0.2, Release 2.0.1, Release 2.1.2
- Android 2.2 (device only...HTC Aria for example) - Happening in Galaxy Note and HTC ChaCha as well.
- Titanium Mobile SDK 2.0.0.v20120325213306
- Titanium Studio 184.108.40.206202141208
On a window with a TextField, tapping the TextField to bring up the keyboard, then tapping the android:back button closes the window. Doing the same thing on the emulator simply dismisses the keyboard.
Clicking the android:back button when the keyboard is displayed closes the window (because the 'android:back' event is fired).
Clicking the android:back button when the keyboard is displayed should just dismiss the keyboard, and not fire the 'android:back' event.
NOTE: The "android:back" event is buggy on some devices. It may never fire at all.
You may need to try various devices to reproduce the failure case.
To verify the expected behavior change the event to "androidback" (no colon).
1. Run application on a device that uses a soft keyboard.
2. Focus the textfield to bring up the soft keyboard.
3. Hit the "back" button on the device. You should see NO alert.
4. Hit the "back" button again. You SHOULD see an alert.
Fail: You see two alerts (one for each "back" press).
Pass: You only get an alert in step 4.
1. Run application and click "Open windows".
2. Hit the back button. You should see an alert and the window should close.
3. Repeat step 2 for each window until all of them are closed and you are back to the main window.