Showing on-screen keyboard at the start of a plugin has stopped working
#1
Hi,

I have a simple plugin that pops up the on-screen keyboard, and then uses the text provided to search and return any results. It's been working for years, but the latest nightlies have been causing problems, with the loading directory dialog now coming up straight away, on top of the keyboard, preventing input.

Code:
keyboard = xbmc.Keyboard(searchtext, 'Enter text for search')
keyboard.doModal()
if (keyboard.isConfirmed()):
        searchtext = urllib.quote_plus(keyboard.getText())

Just wondering if there is any other way to get this working again? It stopped working with the "20120805-c1c650c-master" nightly. Or perhaps it's just a bug that's been introduced?

Thanks!


Reply
#2
Just wanted to confirm I see the same issue. If you type something quickly and jam on the enter key, everything proceeds as normal. Otherwise, you have about seconds before the loading dialog pops up over the keyboard. It doesn't look like anything has changed in the python docs, so I'm assuming this is a bug and will get ironed out
Reply
#3
Same problem as this? http://forum.xbmc.org/showthread.php?tid=136170
Reply
#4
I don't know if it's the same issue. I didn't have to do anything apart from revert to an earlier version of XBMC (on Windows) and it started working again. I downloaded all of the builds in between the 2 to test, and it stopped working at the nightly I mentioned.
Reply
#5
Seems somehow related, but I'm on Win 7 where they're in Linux. It looks like they also have a custom compile, where as I have a standard Nightly. As shown above, dropping back to a previous version fixes the behavior.

It would seem that keyboard.doModal() is no longer blocking properly. If I include the endofdirectory() after popping the keyboard dialog, the loading directory dialog doesn't show, but I then can't add the items to the directory based on the search text.
Reply
#6
Is it possible it's this commit that causes this change in behaviour?

https://github.com/xbmc/xbmc/commit/49cc...55adc0c019

I'm not at all familiar with XBMC's code though!
Reply
#7
Submitted bug report: http://trac.xbmc.org/ticket/13244
Reply
#8
I'm running nightly build 8-11 and noticed this same issue. At first, I thought it was a bug with my addon, but I noticed the problem with other addons including the Youtube addon. Thanks for posting the bug report Deeever Big Grin
Reply
#9
track progress here; https://github.com/xbmc/xbmc/pull/1281
Reply
#10
I agree with @Deever, it is commit https://github.com/xbmc/xbmc/commit/49cc...55adc0c019 causing the problem...

If this commit is commented out then the "Loading Directory" dialog doesn't get displayed over the top of the Search dialog.

EDIT: It seems you need the commits from PR 1281 for everything to work properly with the "lock.leave()" commit.
Reply
#11
disclosing a problem != causing it. the underlying problem is the fact that we toss the dialog at all. it's all in the pr i linked.
Reply

Logout Mark Read Team Forum Stats Members Help
Showing on-screen keyboard at the start of a plugin has stopped working0