Kodi Community Forum

Full Version: Problem with <onback>
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi all,

To explain my problem, i figure it might be easier to just explain the exact steps involved:

1. From my Home window, i open a custom window with id 1100.
2. In this window my default control is 3000, when i press right, i set focus to a control with id 3100.
3. When i press back, while being focused on control 3100, the window closes - and i am back to the home window.

My problem is, i want <onback> for control 3100, to change focus to 3000. But as you see clicking back goes to the previous window.

Do any of you know how to solve this?
You don't say if you've added 
xml:
<onback>3000</onback>
to control 3100 or not.
I had <onback>Control.SetFocus(3000)</onback> - I tried changing it to <onback>3000</onback> and it worked! :-D I thought those expressions were equivalent. Guess not.

Thanks man.