Kodi Community Forum
Problem in assigning id's for arrow keys movement. - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12)
+--- Thread: Problem in assigning id's for arrow keys movement. (/showthread.php?tid=137351)



Problem in assigning id's for arrow keys movement. - slinuxgeek - 2012-08-01

I have two controls on screen like following:
First one is button and another one is Search box with id="8" or Filter box with id="19" but only one of the boxes is visible at any moment.

I want to write <onright>what_to_write_here</onright> in button so that which ever edit box is visible, should get focus on pressing the right key.

This is not working:
<control type="button">
<onright>8</onright>
<onright>19</onright>
</control>

Please tell me the best way to do that.
Thank You.


RE: Problem in assigning id's for arrow keys movement. - phil65 - 2012-08-01

(2012-08-01, 16:03)slinuxgeek Wrote: I have two controls on screen like following:
First one is button and another one is Search box with id="8" or Filter box with id="19" but only one of the boxes is visible at any moment.

I want to write <onright>what_to_write_here</onright> in button so that which ever edit box is visible, should get focus on pressing the right key.

This is not working:
<control type="button">
<onright>8</onright>
<onright>19</onright>
</control>

Please tell me the best way to do that.
Thank You.

<onright condition="Control.IsVisible(19)"> etc



RE: Problem in assigning id's for arrow keys movement. - slinuxgeek - 2012-08-01

Thank You phil65 Smile that worked !!