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
python interface now can use native keyboard (ios currently) if possible. #2101
Conversation
Thanks for the patch. Please split the commit up into a single change per commit (i.e. "changed: CApplicationMessenger::SendGUIMessage to handle case where winid == 0", "add autopool if none available" etc.) git reset HEAD~1, git add -p |
well, splited, and I also have another non-finished commit I'm working on it for use ios native UITextField control to input, which can input any language chars supported by ios native input method, and support clipboard copy and paste, also will include tap non-input region to cancel feature just like the generic keyboard does. |
Nice work - does it still work with the common keyboard dialog on non ios? Beside that i'm really looking forward to your change by using the UITextField on ios - i was not able to figure it out and the current approach just looks a bit ugly on ios :D Thx for working on that front :) |
the original great work is from #1194, the ios native keyboard will be used for most cases on ios, except for the python addons. on other platforms it still showing the original generic keyboard. |
Ahh right - i heard of the guy who did this :D - just wanted to make sure that its still working outside of ios with your patches ;) |
it's still working on non-ios, certainly, ios keyboard only used on ios, else generic keyboard window instance is used. |
Since this is part of #2105 i have tested this with the youtube addon and it works like a charm (native keyboard is used in addon settings there). Nice :) |
This has to go in before #2105 |
@jmarshallnz are you ok with that? |
Overall it looks fine once the inline comments are taken care of. Does the factory not support autoclose? |
factory not support autoclose, yet. |
@ulion could you rebase and adapt to master please? Factory has the autoclose added now ;) - thx for your patience. |
… condition, which sent by CApplicationMessenger::SendGUIMessage by if no window id specified.
from somewhere no pool was set.
…be it is called from non xbmc main thread.
rebased, and last 3 commits were changed from the first request. |
nice cleanup - i'm fine with it |
so far so good, but I found we have to handle the Cancel() from the timer thread at any time, which makes it not so easy to write strong code. I will handle the Cancel() in more thread-safe way, if I can figure it out. |
finally, I got the Cancel() call thread-safe. |
looks good - but why that bool pointer - instead just call a function setcanceled in the keyboardview which sets a normal bool member |
when Cancel() get called, we really don't known whether keyboardView pointer is valid and where the keyboard thread is running to, there could be some race-conditions. so finally I let the Cancel() just set a flag, and let the keyboard thread do the check cancel flag work. |
@jmarshallnz since i don't see your inline comments - can you confirm that those are fixed? If so i'm fine enough with it to pull the trigger... |
python interface now can use native keyboard (ios currently) if possible.
I'm glad to see native keyboard feature in Frodo currently, it comes from #1194, but the Keyboard in python interface still wasn't benefit from the feature.
This little commit, just enable use native keyboard feature in python interface if possible.
since the python addon is running in standalone thread other than the main xbmc thread, there is a little adjust need to be set to let the ios keyboard works, which include: