|
xkbcommon 1.14.0-beta2
Reference library implementing the XKB specification for parsing keyboard descriptions and handling keyboard state
|
#include <xkbcommon.h>
Data Fields | |
| uint32_t | size |
| xkb_layout_index_t | source |
| xkb_layout_index_t | target |
| xkb_mod_mask_t | affect_mods |
| xkb_mod_mask_t | mods |
Update a layout substitution of the shortcut layout overrides for xkb_machine_builder::xkb_machine_builder_update_shortcut_override()
When any of the specified modifiers (see mods and affect_mods) is active, the effective layout source is substituted with layout target in key processing. This ensures a consistent user experience with keyboard shortcuts across the layouts.
Example: substitute layout #0 with layout #1 when any of the modifiers Control, Alt and Super triggers shortcut overrides.
Example: all layouts will behave as if using the first layout any of the modifiers Control, Alt and Super triggers shortcut overrides.
Example: substitute layout #0 with #2 for modifiers Control and Alt, substitute layout #1 with #3 for modifier Super.
xkb_layout_index_t xkb_machine_builder::xkb_machine_builder_update_shortcut_override()| uint32_t xkb_machine_builder_shortcut_override_update::size |
| xkb_layout_index_t xkb_machine_builder_shortcut_override_update::source |
Source layout to substitute.
If set to XKB_LAYOUT_INVALID, then source and target are ignored and all the active substitution entries are modified with the other fields.
| xkb_layout_index_t xkb_machine_builder_shortcut_override_update::target |
Target layout to substitute to source when any of the specified modifiers (see mods and affect_mods) are active.
If set to XKB_LAYOUT_INVALID or source, then the substitution is deactivated for layout source.
| xkb_mod_mask_t xkb_machine_builder_shortcut_override_update::affect_mods |
Modifiers affected by the update, using their encoding.
If set to 0, then affect_mods and mods are ignored.
See mods.
| xkb_mod_mask_t xkb_machine_builder_shortcut_override_update::mods |
Modifiers triggering the layout substitution, using their encoding.