Kodi Community Forum

Full Version: What's the meaning of '-' in a skin node?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
In the skinning wiki I see examples like this

      <onfocus>-</onfocus>
      <onunfocus>-</onunfocus>

What does the '-' do, please?
empty / do nothing

in kodi v18 leia, it's no longer supported, and you can simple use:
xml:
      <onfocus></onfocus>
      <onunfocus></onunfocus>

ref: https://forum.kodi.tv/showthread.php?tid...pid2534486
Thanks.  I was confused because both syntaxes appear in the same example in the wiki.

BTW, can you point me to docs on the focused* tags?  Can I just add focused to any other tag?
Can't seem to get Edit to work - it seems there is only focusedlayout available so I'll go with that.
(2018-02-03, 19:03)ronie Wrote: [ -> ]empty / do nothing

in kodi v18 leia ... you can simple use:
xml:
      <onfocus></onfocus>
      <onunfocus></onunfocus>

ref: https://forum.kodi.tv/showthread.php?tid...pid2534486

Unless I'm mistaken, that is only correct for tags that are not actions (e.g. <label /> <font /> etc.).
For actions (e.g. those starting with "on" such as <onup>), a blank tag will use the default action.
Instead, "noop" should be used to specify no action.

For instance, with a blank onup tag on a vertical list, the list will scroll back around to the bottom when reaching the top:
Code:
<onup></onup>

However, using "noop" will prevent this from happening:
Code:
<onup>noop</onup>
i stand corrected ;-)