Kodi Community Forum

Full Version: Prevent focus on a control
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

Is there a way to make sure a control cannot get focused? I have a problem with my skin when disabling certain controls under given conditions, the navigation with get the focus to an unwanted control, I would like to prevent this.

Thx in advance.
Code?
well, my skin code would make the issue difficult to understand, but I will try to illustrate my problem:

Quote:<defaultcontrol always="true">1</defaultcontrol>

<control id="1">
<ondown>2</ondown>
</control>

<control id="2">
<visible>condition1</visible>
</control>

<control id="3">
</control>

My problem is simply that, when condition1 is false, the control id 2 will disappear, which is expected, but then when I press down from control id 1, the focus gets to control id 3 (because I guess it is the next available focus in a control stack), I would like to prevent this.
In the visible condition add allowhiddenfocus="true"
Hi,

Thx for the reply. This could work, but I would like the focus to stay on control id 1, is this possible? Like disabling the <ondown> property under certain conditions?
for control with id 1:
<ondown condition="condition1">2</ondown> should do the trick
(2016-01-13, 02:20)phil65 Wrote: [ -> ]for control with id 1:
<ondown condition="condition1">2</ondown> should do the trick

This is exactly what I needed, thx very much!