New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(android): amend constants for showSoftKeyboard() #11309
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CR: Pass
@garymathews For the second test case should the keyboard automatically appear when Test Environment
|
@ssjsamir, for test 2, does it show the virtual keyboard in Titanium 8.2.0 or older versions? I remember the |
@jquick-axway Using 8.2.0.GA the keyboard stays focused when it moves from |
I believe you need to specify softKeyboardOnFocus on the ...
const txt_c = Ti.UI.createTextField({
hintText: 'Text Field #3',
width: '90%',
softKeyboardOnFocus: Ti.UI.Android.SOFT_KEYBOARD_SHOW_ON_FOCUS
});
... |
@garymathews , with 8.2.1.GA the keyboard stays focused when you hit enter & go to the 3rd textfield unlike this PR. |
@lokeshchdhry Yep, but that behavior is wrong. |
FR Passed. Studio Ver: 5.1.4.201909061933 |
I've tested this extensively and can confirm that this PR fixes the issue in relation to Test Case 1. However, I don't think this PR fixes the issue entirely for Test Case 2. It's quite buggy. Results Emulator API 26-29 (8.2.1.GA): Typing in TextField1 and hitting Return results in Focus on TextField3, while virtual keyboard is still shown. However, it is not required to click on TextField3 to type into it as in 8.2.0.GA. You can start typing right away upon return/focus of TextField3. Emulator API 26-29 (this PR): Upon hitting return from TextField1, the keyboard disappears but the focus is now on TextField3. To bring up the keyboard, you must click on TextField3 to start typing. Note: using
Device Nexus 5X API 26: Both 8.2.0.GA and 8.2.1.GA function the same. Upon hitting return, you can start typing immediately in TextField3 without having to tap on TextField3 first. Device Nexus 5X API 26 (this PR): With this PR build, the app fails to launch entirely. Error(s) shown below:
Test Environment
|
350af82
to
c24beb6
Compare
No idea why you are experiencing
|
Changes verified. |
showSoftKeyboard()
TEST CASE #1
TEST CASE #2
Text Field #1
Enter
Text Field #3
should focus and allow text entryJIRA Ticket