2012-12-02, 23:00
I'm in the process of replacing HTTP API stuff with pure JSON for the upcoming Frodo release; actually the main purpose I was still using the HTTP API was for sending keys (like many others) to emulate keyboard presses. I understand that for the JSON API you want to only expose functionality to input text into text boxes, I've been following the discussions closely and I fully agree with the arguments to keep the API simple and just revert to the event server for full control. So I wanted to restrict keyboard emulation to just using SendText for input boxes in the XBMC GUI; for all the other stuff there's now plenty of functionality in the JSON API, thanks for that!
One thing I do find particularly important is to be able to have the user edit text that's already in an input box; so I like the OnInputRequested notification.
However, there are a quirks with the new SendText and OnInputRequested. First of all, you don't get an input requested when you move onto an input box, without actually pulling up the virtual keyboard in XBMC. For example try the username/password setting in the Webserver settings pane. You can edit this box without going into the virtual keyboard window, but there's no OnInputRequested notification when moving onto that input. Is there a way to get and OnInputRequested notification here too? Or is not getting the notification by design?
Also, when you do send a SendText method while in that particular screen, it will fill out _all_ text boxes (i.e. port, username and password). It works that way for all screens that have multiple input boxes. I guess that's a bug?
I can think of workarounds to these issues, however, I was wondering what the thoughts on the XBMC development side of things about this are before working around it on the client side.
Thanks!
One thing I do find particularly important is to be able to have the user edit text that's already in an input box; so I like the OnInputRequested notification.
However, there are a quirks with the new SendText and OnInputRequested. First of all, you don't get an input requested when you move onto an input box, without actually pulling up the virtual keyboard in XBMC. For example try the username/password setting in the Webserver settings pane. You can edit this box without going into the virtual keyboard window, but there's no OnInputRequested notification when moving onto that input. Is there a way to get and OnInputRequested notification here too? Or is not getting the notification by design?
Also, when you do send a SendText method while in that particular screen, it will fill out _all_ text boxes (i.e. port, username and password). It works that way for all screens that have multiple input boxes. I guess that's a bug?
I can think of workarounds to these issues, however, I was wondering what the thoughts on the XBMC development side of things about this are before working around it on the client side.
Thanks!