Skip to main content

pretty_binding

Function pretty_binding 

Source
pub fn pretty_binding(binding: &str) -> String
Expand description

Formats a raw binding string into a readable label, capitalizing keys and normalizing modifier aliases (for example "mod+shift+p" becomes "Ctrl+Shift+P").