-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
TextView new line closes virtual keyboard on Android #3111
Comments
Hi @fuleshu,
I have tested the case with tns-core-modules 2.4.0 on Android emulator API level 23 and 17 and real device with API level 18. It would help if you could give us sample code, where the problem could be debugged locally. It would also help if you could test your code on different device or emulator. Regards, |
Hi, thanks for your fast reply. That means the problem is specific to my LG Flex 2 :( Thanks a lot! |
To narrow things down, I created a native Android app with just a Then I created from scratch one NativeScript application without templates and one using Angular2. So it seems like this is a NativeScript bug that just occurs on my LG. |
@fuleshu Since we can't really reproduce this on our side, here is what we can do. In your app folder, in the file
Then run the app and if something appears in the console log, paste it here. |
Hi, here is the console log:
Hope this helps! |
I digged a little further into it. |
I don't know if this was a clever thing to do, but in the if ((owner._cssType === "textview") && (event && event.getKeyCode() === android.view.KeyEvent.KEYCODE_ENTER)) {
return false;
} This solves the issue on my LG phone. |
@fuleshu Thank you so much. I might refine the |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I want to enter multiple lines in a TextView. As far as I understood this is what the TextView is for.
I use NativeScript with Angular 2.
I use a simple TextView like this in the xml:
<TextView></TextView >
When I tap on it the virtual keyboard opens as expected. Then I enter text. But when I enter return to start a new line, the keyboard closes. The new line is still inserted. But I have to click on the TextView again to reopen the keyboard.
This happens with version 2.3 and 2.4
I use an Android Device (LG Flex 2)
Do I have to configure the TextView somehow? How can I stop the keyboard from closing?
Thanks a lot,
Timo
The text was updated successfully, but these errors were encountered: