diff options
author | Benno Schulenberg <bensberg@telfort.nl> | 2022-05-31 11:24:22 +0200 |
---|---|---|
committer | Benno Schulenberg <bensberg@telfort.nl> | 2022-06-03 17:41:23 +0200 |
commit | 924a3ab07ddd3607d3756346cf0a1272723d14bf (patch) | |
tree | 44cd995e3567c0712b584bdc602e11eb9ff2df13 | |
parent | a2e91e9292a7e8cb054d0dede78ab30b6d287323 (diff) | |
download | xkeyboard-config-924a3ab07ddd3607d3756346cf0a1272723d14bf.tar.gz |
condense and correct four comments -- NumLock is a virtual modifier
Mod2 is the real modifier, to which "NumLock" gets mapped by making
<HYPR> set the "NumLock" modifier *and* mapping <HYPR> to Mod2.
(The logic is absurd, but what can one do?)
Also, reshuffle two lines and rearrange two lines for esthetics.
-rw-r--r-- | compat/level5 | 7 | ||||
-rw-r--r-- | symbols/level5 | 12 | ||||
-rw-r--r-- | types/level5 | 10 |
3 files changed, 11 insertions, 18 deletions
diff --git a/compat/level5 b/compat/level5 index 54f749d..2e52901 100644 --- a/compat/level5 +++ b/compat/level5 @@ -42,11 +42,8 @@ default partial xkb_compatibility "default" { }; partial xkb_compatibility "level5_lock" { - // This defines a Level5-Lock using the NumLock real modifier - // in order to create arbitrary level-behaviour, which would - // not be possible with the virtual modifier. - // See also: types/level5 : EIGHT_LEVEL_LEVEL_FIVE_LOCK - // See also: symbols/level5(lock) + // This defines a Level5-Lock using the NumLock virtual modifier. + // See also types/level5 (EIGHT_LEVEL_LEVEL_FIVE_LOCK) and symbols/level5(lock). virtual_modifiers NumLock; diff --git a/symbols/level5 b/symbols/level5 index 4b67ffc..2e0df19 100644 --- a/symbols/level5 +++ b/symbols/level5 @@ -61,21 +61,19 @@ xkb_symbols "modifier_mapping" { modifier_map Mod3 { <MDSW> }; }; - -// This adds the definitions needed to create a level5-lock behaviour, using -// the real modifier NumLock as a lock indicator. -// See also: types/level5 : EIGHT_LEVEL_LEVEL_FIVE_LOCK -// See also: compat/level5(level5_lock) +// This adds the definitions needed to create a level5-locking behaviour, +// using the virtual modifier NumLock (mapped to Mod2) as lock indicator. +// See also types/level5 (EIGHT_LEVEL_LEVEL_FIVE_LOCK) and compat/level5 (level5_lock). partial modifier_keys xkb_symbols "lock" { - key.type[Group1] = "ONE_LEVEL"; - include "level5(modifier_mapping)" replace key <HYPR> { vmods = NumLock, + type[Group1] = "ONE_LEVEL", symbols[Group1] = [ NoSymbol ], actions[Group1] = [ SetMods(modifiers=NumLock) ] }; modifier_map Mod2 { <HYPR> }; + include "level5(modifier_mapping)" }; // The following modifier keys are used to switch to the third shift level diff --git a/types/level5 b/types/level5 index 19d1552..51770a2 100644 --- a/types/level5 +++ b/types/level5 @@ -54,10 +54,9 @@ default partial xkb_types "default" { }; type "EIGHT_LEVEL_LEVEL_FIVE_LOCK" { - // Level5-Lock is implemented by using NumLock, because a real modifier - // is required. + // Level5-Lock is implemented with virtual modifier NumLock. - modifiers = Shift + Lock + LevelThree + NumLock + LevelFive; + modifiers = Shift + Lock + LevelThree + LevelFive + NumLock; map[None] = Level1; map[Shift] = Level2; @@ -116,10 +115,9 @@ default partial xkb_types "default" { }; type "EIGHT_LEVEL_ALPHABETIC_LEVEL_FIVE_LOCK" { - // Level5-Lock is implemented by using NumLock, because a real modifier - // is required. + // Level5-Lock is implemented with virtual modifier NumLock. - modifiers = Shift + Lock + LevelThree + NumLock + LevelFive; + modifiers = Shift + Lock + LevelThree + LevelFive + NumLock; map[None] = Level1; map[Shift] = Level2; |