docs/focus.rst
author Radek Brich <radek.brich@devl.cz>
Tue, 04 Oct 2011 22:51:12 +0200
changeset 16 8791a7da6835
parent 9 7175ed629a76
permissions -rw-r--r--
Update VerticalLayout/HorizontalLayout. Add layout demo. Add Size, Borders to common. Update Coords, Rect.

Focus
=====

Only one widget can have focus at the time.
Top widget has link to currently focused widget in 'focuswidget'.

Events emitted on change: focus, unfocus

mousedown - focus widget under mouse

tab - focus next child in container (depends on canfocus())
shift-tab - previous child

hide() -> unfocus

tab/shift-tab into / out off containers?
trapfocus # if True, tab cycles inside container

widget.hasfocus()