2012-12-03, 09:36
(2012-12-02, 23:00)gertjanzwartjes Wrote: 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?
OK I've had a quick look at this and here is the problem: Let's say xbmc sends a OnInputRequested notification everytime a user focuses an edit control and an OnInputFinished notification when the user unfocuses the edit control. Here is what can happen:
- User focuses edit control -> OnInputRequested notification
- User presses enter -> virtual keyboard dialog opens -> another OnInputRequested notification
- User enters some text and then closes the dialog -> OnInputFinished notification
- User is still focused on the edit control
- User leaves the edit control -> OnInputFinished notification