2017-09-12, 22:22
(2017-09-07, 17:56)Luke Cage Wrote:I looked into this just now (yes a bit later than expected).(2017-09-06, 21:17)Jeroen Wrote: [quote='Luke Cage' pid='2643396' dateline='1504713152']Thanks Jeroen. I'm giving it a shot later tonight.
@Jeroen
...
You're going to need something to move focus to in the custom window. So I would put an invisible button in the custom dialog and set an onload in the custom window to focus on that button (use allowhiddenfocus="true"). That should prevent the focus staying on the button in the video info screen. You could also try using ActivateWindowAndFocus on the button in dialogvideoinfo.xml but I believe that function doesn't work in custom windows. Not completely sure about that though.
...
I wasted your time and my time.
The problem was that I still had a <visibile> tag right after my <window type="dialog" id="1196"> with videowindow control. A leftover from a tryout with popping the trailer dialog automatically (combined with <onload>PlayMedia) when the movie information screen is displayed.
So Kodi ignored my <onclick>ActivateWindow(1196)</onclick> on the new button and auto popped and auto closed my new trailer dialog. But in doing so it leaves control with the movie information window below it. The skin debugger showed this nicely.
Once I removed the <visible> tag from the dialog window the movie information buttons and keys were disabled. And control moved to my trailer dialog.