diff options
author | Pierre Le Marre <dev@wismill.eu> | 2025-01-10 09:35:56 +0100 |
---|---|---|
committer | Pierre Le Marre <dev@wismill.eu> | 2025-01-10 11:58:14 +0100 |
commit | 5f12a603e2936a4aa3ea4c08f000392a0d01adae (patch) | |
tree | 4a8f0971088526795b7e6609232e68a504def164 /types/numpad | |
parent | d9eda056c26e0be891d0f66850057358c89183e5 (diff) |
Use explicit virtual modifiers declarations
A virtual modifier should always be declared before its use. They are a
few missing entries, that currently work only because they are not used
in isolation.
But since XKB is about composability, we should ensure that every
component compiles in isolation, so this commit adds the missing
`virtual_modifiers` entries.
Part-of: <https://gitlab.freedesktop.org/xkeyboard-config/xkeyboard-config/-/merge_requests/796>
Diffstat (limited to 'types/numpad')
-rw-r--r-- | types/numpad | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/types/numpad b/types/numpad index 8d7677a6..72bfb542 100644 --- a/types/numpad +++ b/types/numpad @@ -1,4 +1,6 @@ default partial xkb_types "pc" { + virtual_modifiers NumLock; + type "KEYPAD" { modifiers = Shift + NumLock; map[None] = Level1; @@ -19,6 +21,8 @@ partial xkb_types "mac" { }; partial xkb_types "microsoft" { + virtual_modifiers NumLock; + type "KEYPAD" { modifiers = Shift + NumLock; map[None] = Level1; @@ -35,6 +39,8 @@ partial xkb_types "microsoft" { // Closest type is actually FOUR_LEVEL_X, but most numpad layouts use // FOUR_LEVEL_MIXED_KEYPAD, so that's the one we are going to override. partial xkb_types "shift3" { + virtual_modifiers Alt, NumLock; + type "FOUR_LEVEL_MIXED_KEYPAD" { modifiers = Shift + NumLock + Control + Alt; |