Added the ability to find the deepest subpanel.
Event stuff; fix focus on cursor moves.