Skip to main content

format_keybinding

Function format_keybinding 

Source
pub fn format_keybinding(keycode: &KeyCode, modifiers: &KeyModifiers) -> String
Expand description

Format a keybinding as a user-friendly string On macOS, uses native symbols: ⌃ (Control), ⌥ (Option), ⇧ (Shift) without separators On other platforms, uses “Ctrl+Alt+Shift+” format