How to regain Focus?
#1
So I am working on custom window... All works as long as I use either mouse or keyboard. Issue is when I use the mouse and then go back to keyboard.

Basically I have one primary button I want to have the main focus and from that point I can navigate to and from. What I am looking for is when I take the mouse and hover to a "dead" area where there are no controls, then when I press up or down on the keyboard I want it to set the focus back to this primary button. Is there a clean correct way to do this. I know I can hack it by putting a fake hidden button the size of the screen with the up down left right set to go to the primary button, but i am hopeing someone know a better way.


Thanks.
Shield TV | Windows 10 | Mariadb | Mii Box
Evolve Ecosystem Repo | TV Melodies | Madnox Holiday Mod
Reply
#2
<defaultcontrol> should take care of that
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#3
Thanks that worked perfectly.
Shield TV | Windows 10 | Mariadb | Mii Box
Evolve Ecosystem Repo | TV Melodies | Madnox Holiday Mod
Reply

Logout Mark Read Team Forum Stats Members Help
How to regain Focus?0