Prevent focus on a control
#1
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.
Reply
#2
Code?
Reply
#3
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.
Reply
#4
In the visible condition add allowhiddenfocus="true"
Reply
#5
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?
Reply
#6
for control with id 1:
<ondown condition="condition1">2</ondown> should do the trick
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
#7
(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!
Reply

Logout Mark Read Team Forum Stats Members Help
Prevent focus on a control0