docs/focus.rst
author Radek Brich <radek.brich@devl.cz>
Wed, 16 Feb 2011 23:51:30 +0100
changeset 0 a35731b5e31a
child 1 69318aba22bf
permissions -rw-r--r--
tuikit
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
Radek Brich <radek.brich@devl.cz>
parents:
diff changeset
     1
Focus
Radek Brich <radek.brich@devl.cz>
parents:
diff changeset
     2
=====
Radek Brich <radek.brich@devl.cz>
parents:
diff changeset
     3
Radek Brich <radek.brich@devl.cz>
parents:
diff changeset
     4
Only one non-container widget can have focus at the time.
Radek Brich <radek.brich@devl.cz>
parents:
diff changeset
     5
All parent containers also have focus.
Radek Brich <radek.brich@devl.cz>
parents:
diff changeset
     6
Radek Brich <radek.brich@devl.cz>
parents:
diff changeset
     7
Events emitted on change: focus, unfocus
Radek Brich <radek.brich@devl.cz>
parents:
diff changeset
     8
Radek Brich <radek.brich@devl.cz>
parents:
diff changeset
     9
mousedown - focus widget under mouse or its parent if canfocus() == false
Radek Brich <radek.brich@devl.cz>
parents:
diff changeset
    10
Radek Brich <radek.brich@devl.cz>
parents:
diff changeset
    11
tab - focus next child in container
Radek Brich <radek.brich@devl.cz>
parents:
diff changeset
    12
shift-tab - previous child
Radek Brich <radek.brich@devl.cz>
parents:
diff changeset
    13
Radek Brich <radek.brich@devl.cz>
parents:
diff changeset
    14
hide() -> unfocus