… | |
… | |
13 | #define KEYSYM_HASH_MASK (KEYSYM_HASH_BUDGETS-1) |
13 | #define KEYSYM_HASH_MASK (KEYSYM_HASH_BUDGETS-1) |
14 | |
14 | |
15 | #define MetaMask 0x0100 |
15 | #define MetaMask 0x0100 |
16 | #define NumLockMask 0x0200 |
16 | #define NumLockMask 0x0200 |
17 | #define AppKeypadMask 0x0400 |
17 | #define AppKeypadMask 0x0400 |
|
|
18 | #define Level3Mask 0x0800 // currently not supported |
18 | #define OtherModMask (ShiftMask | LockMask | ControlMask \ |
19 | #define OtherModMask (ShiftMask | LockMask | ControlMask \ |
19 | | Mod1Mask | Mod2Mask | Mod3Mask | Mod4Mask | Mod5Mask) |
20 | | Mod1Mask | Mod2Mask | Mod3Mask | Mod4Mask | Mod5Mask) |
20 | |
21 | |
21 | #if (OtherModMask & (MetaMask | NumLockMask | AppKeypadMask)) != 0 |
22 | #if OtherModMask > 0xff |
22 | # error FATAL: MetaMask, NumLockMask and/or AppKeypadMask clashes with X modifiers! |
23 | # error FATAL: X modifiers might clash with rxvt-unicode ones |
23 | #endif |
24 | #endif |
24 | |
25 | |
25 | struct rxvt_term; |
26 | struct rxvt_term; |
26 | struct keysym_t; |
27 | struct keysym_t; |
27 | |
28 | |
… | |
… | |
31 | unsigned int state); |
32 | unsigned int state); |
32 | |
33 | |
33 | struct keysym_t |
34 | struct keysym_t |
34 | { |
35 | { |
35 | enum keysym_type { |
36 | enum keysym_type { |
36 | NORMAL, RANGE, RANGE_META8, LIST |
37 | NORMAL, RANGE, RANGE_META8, LIST, BUILTIN, |
37 | }; |
38 | }; |
38 | |
39 | |
39 | KeySym keysym; |
40 | KeySym keysym; |
40 | /* only the lower 8 bits of state are used for matching according to X.h */ |
41 | /* only the lower 8 bits of state are used for matching according to X.h */ |
41 | /* the higher bits are preserved for Meta/NumLock keys */ |
42 | /* the higher bits are preserved for Meta/NumLock keys */ |