pieh/xbmc — pull request #1 by pieh (2012-07-18 19:08:59+00:00)
Title: GUI: fallback to default control if currently focused control can't be focused anymore

This is attempt to fix http://trac.xbmc.org/ticket/13117

Currently control can hold focus even if it's no longer focusable - this checks if focused control is focusable and switch to default control in window if it's not.

Ideally default control *should* always be focusable - but sometimes it's not (f.e. sometime ago there was issue with selecting music scraper - list of scrapers was empty = not focusable and that list was default control). Not sure how to handle this nicely other than allowing to define list of default controls and picking first focusable control from that list and if none is focusable then just grab any focusable control.