Skip to main content

registrable_bindings

Function registrable_bindings 

Source
pub fn registrable_bindings(s: &Settings) -> Vec<Hotkey>
Expand description

The bindings that should actually be registered with the OS: only when hotkeys are enabled, only entries with a non-blank accelerator, and only chords bound to exactly one action. A chord bound to two or more actions is dropped entirely (none of them fire) so behaviour is unambiguous and matches the conflict the renderer flags — rather than letting whichever action registers first silently win. Pure so the gating is unit-testable without touching the OS.