mirror of
https://gitlab.freedesktop.org/xorg/lib/libx11.git
synced 2026-05-08 09:08:18 +02:00
Add Super and Hyper to XCompose modifier list
This commit is contained in:
parent
1f8fd7ff1c
commit
21dba552f4
2 changed files with 6 additions and 4 deletions
|
|
@ -99,7 +99,7 @@ Each event consists of a specified input keysym, and optional modifier states:
|
|||
If the modifier list is preceded by
|
||||
.RB \*q "!" \*q
|
||||
it must match exactly.
|
||||
MODIFIER may be one of Ctrl, Lock, Caps, Shift, Alt or Meta.
|
||||
MODIFIER may be one of Ctrl, Lock, Caps, Shift, Alt, Meta, Super or Hyper.
|
||||
Each modifier may be preceded by a
|
||||
.RB \*q "~" \*q
|
||||
character to indicate that the modifier must not be present.
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ static void parsestringfile(FILE *fp, Xim im, int depth);
|
|||
* EVENT ::= [MODIFIER_LIST] "<" keysym ">"
|
||||
* MODIFIER_LIST ::= (["!"] {MODIFIER} ) | "None"
|
||||
* MODIFIER ::= ["~"] MODIFIER_NAME
|
||||
* MODIFIER_NAME ::= ("Ctrl"|"Lock"|"Caps"|"Shift"|"Alt"|"Meta")
|
||||
* MODIFIER_NAME ::= ("Ctrl"|"Lock"|"Caps"|"Shift"|"Alt"|"Meta"|"Super"|"Hyper")
|
||||
* RHS ::= ( STRING | keysym | STRING keysym )
|
||||
* STRING ::= '"' { CHAR } '"'
|
||||
* CHAR ::= GRAPHIC_CHAR | ESCAPED_CHAR
|
||||
|
|
@ -294,7 +294,9 @@ modmask(
|
|||
{ "Caps", LockMask },
|
||||
{ "Shift", ShiftMask },
|
||||
{ "Alt", Mod1Mask },
|
||||
{ "Meta", Mod1Mask }};
|
||||
{ "Meta", Mod1Mask },
|
||||
{ "Hyper", Mod3Mask },
|
||||
{ "Super", Mod4Mask }};
|
||||
|
||||
int i, num_entries = sizeof (tbl) / sizeof (tbl[0]);
|
||||
|
||||
|
|
@ -441,7 +443,7 @@ get_mb_string (Xim im, char *buf, KeySym ks)
|
|||
return len;
|
||||
}
|
||||
|
||||
#define AllMask (ShiftMask | LockMask | ControlMask | Mod1Mask)
|
||||
#define AllMask (ShiftMask | LockMask | ControlMask | Mod1Mask | Mod3Mask | Mod4Mask)
|
||||
#define LOCAL_WC_BUFSIZE 128
|
||||
#define LOCAL_UTF8_BUFSIZE 256
|
||||
#define SEQUENCE_MAX 10
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue