Edit

kc3-lang/libxkbcommon/changes/api/486.multiple-actions-per-level.feature.md

Branch :

  • Show log

    Commit

  • Author : Pierre Le Marre
    Date : 2025-01-27 17:15:06
    Hash : c85c9bdc
    Message : symbols: Allow levels with different keysyms and actions counts Contrary to groups, there is no reason for levels to restrict the same count of keysyms and actions.

  • changes/api/486.multiple-actions-per-level.feature.md
  • symbols: Added support for *multiple actions per levels:*
    - When no action is specified, `interpret` statements are used to find an action corresponding for *each* keysym, as expected.
    - When both keysyms and actions are specified, they may have a different count for each level.
    - For now, at most one action of each following categories is allowed per level:
      - modifier actions: `SetMods`, `LatchMods`, `LockMods`;
      - group actions: `SetGroup`, `LatchGroup`, `LockGroup`.
      Some examples:
      - `SetMods` + `SetGroup`: ok
      - `SetMods` + `SetMods`: error
      - `SetMods` + `LockMods`: error
      - `SetMods` + `LockGroup`: ok