1XtSetKeyboardFocus(3)            XT FUNCTIONS            XtSetKeyboardFocus(3)
2
3
4

NAME

6       XtSetKeyboardFocus - focus events on a child widget
7

SYNTAX

9       #include <X11/Intrinsic.h>
10
11       void XtSetKeyboardFocus(Widget subtree, Widget descendant);
12

ARGUMENTS

14       subtree   Specifies either the widget in the subtree structure which is
15                 to receive the keyboard event, or None.  Note that it is not
16                 an error to specify None when no input focus was previously
17                 set.
18
19       descendant
20                 Specifies the widget for which the keyboard focus is to be
21                 set.
22

DESCRIPTION

24       If a future KeyPress or KeyRelease event occurs within the specified
25       subtree, XtSetKeyboardFocus causes XtDispatchEvent to remap and send
26       the event to the specified descendant widget.
27
28       When there is no modal cascade, keyboard events can occur within a wid‐
29       get W in one of three ways:
30
31       •    W has the X input focus.
32
33       •    W has the keyboard focus of one of its ancestors, and the event
34            occurs within the ancestor or one of the ancestor's descendants.
35
36       •    No ancestor of W has a descendant within the keyboard focus, and
37            the pointer is within W.
38
39       When there is a modal cascade, a widget W receives keyboard events if
40       an ancestor of W is in the active subset of the modal cascade and one
41       or more of the previous conditions is True.
42
43       When subtree or one of its descendants acquires the X input focus or
44       the pointer moves into the subtree such that keyboard events would now
45       be delivered to subtree, a FocusIn event is generated for the descen‐
46       dant if FocusNotify events have been selected by the descendant.  Simi‐
47       larly, when W loses the X input focus or the keyboard focus for one of
48       its ancestors, a FocusOut event is generated for descendant if FocusNo‐
49       tify events have been selected by the descendant.
50

SEE ALSO

52       XtCallAcceptFocus(3)
53       X Toolkit Intrinsics - C Language Interface
54       Xlib - C Language X Interface
55
56
57
58X Version 11                      libXt 1.2.1            XtSetKeyboardFocus(3)
Impressum