Skip to main content

is_modifier

Function is_modifier 

Source
pub fn is_modifier(key: &str) -> bool
Expand description

Whether a key name is a modifier rather than a key.

GPUI names a bare modifier shift, control, alt, platform, or function when it parses one; platforms deliver the more familiar spelling of the same keys, so both are refused.