Skip to content

Commit

Permalink
Strip ~ and @ from modifiers before matching them
Browse files Browse the repository at this point in the history
  • Loading branch information
TTWNO authored and ajanon committed Dec 19, 2022
1 parent dd7775f commit 1277a66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion swhkd/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,7 @@ fn parse_keybind(

let modifiers: Vec<Modifier> = tokens_new[0..(tokens_new.len() - 1)]
.iter()
.map(|token| *mod_to_mod_enum.get(token.as_str()).unwrap())
.map(|token| *mod_to_mod_enum.get(strip_at(token.as_str())).unwrap())
.collect();

let mut keybinding = KeyBinding::new(*keysym, modifiers);
Expand Down

0 comments on commit 1277a66

Please sign in to comment.