fgui_application.c: improve focus chain traversal
fgui_application.c: improve focus chain traversal

Don't assign focus to widgets that don't accept it (bug fix). Also
refactor the code a bit.

bjornfor/fgui