Skip to main content

parse_accelerator

Function parse_accelerator 

Source
pub fn parse_accelerator(accel: &str) -> Option<(Key, ModifierType)>
Expand description

Parse a Ctrl+x style accelerator into a key and modifier set. GTK’s parser only understands its native <Control>x spelling, so normalize +-joined strings first.