Skip to main content

normalize_accelerator

Function normalize_accelerator 

Source
fn normalize_accelerator(accelerator: &str) -> String
Expand description

Canonical form of an accelerator for conflict comparison: case-insensitive and modifier-order-insensitive. Mirrors the renderer’s normalizeAccelerator (src/lib/hotkeys.ts) so the in-app conflict warning and the backend’s conflict handling agree.