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

NAME

6       XtSetKeyTranslator, XtTranslateKeycode, XtRegisterCaseConverter,
7       XtConvertCase - convert KeySym to KeyCodes
8

SYNTAX

10       void XtSetKeyTranslator(Display *display, XtKeyProc proc);
11
12       void XtTranslateKeycode(Display *display, KeyCode keycode, Modifiers
13              modifiers, Modifiers *modifiers_return, KeySym *keysym_return);
14
15       void XtRegisterCaseConverter(Display *display, XtCaseProc proc, KeySym
16              start, KeySym stop);
17
18       void XtConvertCase(Display *display, KeySym keysym, KeySym
19              *lower_return, KeySym *upper_return);
20

ARGUMENTS

22       display   Specifies the display.
23
24       keycode   Specifies the KeyCode to translate.
25
26       keysym    Specifies the KeySym to convert.
27
28       keysym_return
29                 Returns the resulting KeySym.
30
31       lower_return
32                 Returns the lowercase equivalent of the KeySym.
33
34       upper_return
35                 Returns the uppercase equivalent of the KeySym.
36
37       modifiers Specifies the modifiers to the KeyCode.
38
39       modifiers_return
40                 Returns a mask that indicates the modifiers actually used to
41                 generate the KeySym.
42
43       proc      Specifies the procedure that is to perform key translations
44                 or conversions.
45
46       start     Specifies the first KeySym for which this converter is valid.
47
48       stop      Specifies the last KeySym for which this converter is valid.
49

DESCRIPTION

51       The XtSetKeyTranslator function sets the specified procedure as the
52       current key translator.  The default translator is XtTranslateKey, an
53       XtKeyProc that uses Shift and Lock modifiers with the interpretations
54       defined by the core protocol.  It is provided so that new translators
55       can call it to get default KeyCode-to-KeySym translations and so that
56       the default translator can be reinstalled.
57
58       The XtTranslateKeycode function passes the specified arguments directly
59       to the currently registered KeyCode to KeySym translator.
60
61       The XtRegisterCaseConverter registers the specified case converter.
62       The start and stop arguments provide the inclusive range of KeySyms for
63       which this converter is to be called.  The new converter overrides any
64       previous converters for KeySyms in that range.  No interface exists to
65       remove converters; you need to register an identity converter.  When a
66       new converter is registered, the Intrinsics  refreshes the keyboard
67       state if necessary.  The default converter understands case conversion
68       for all KeySyms defined in the core protocol.
69
70       The XtConvertCase function calls the appropriate converter and returns
71       the results.  A user-supplied XtKeyProc may need to use this function.
72

SEE ALSO

74       X Toolkit Intrinsics - C Language Interface
75       Xlib - C Language X Interface
76
77
78
79X Version 11                      libXt 1.1.5            XtSetKeyTranslator(3)
Impressum