From bde9db2c38281859759c00813c7e067b3dd14b67 Mon Sep 17 00:00:00 2001 From: Henrik Friedrichsen Date: Sat, 11 Jan 2020 18:09:43 +0100 Subject: [PATCH] fix parsing of '+' keybinding since it is also the delimiter for keybindings with modifiers, it needs special treatment --- src/commands.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands.rs b/src/commands.rs index 9acc9c8..dca751d 100644 --- a/src/commands.rs +++ b/src/commands.rs @@ -276,7 +276,7 @@ impl CommandManager { fn parse_keybinding(kb: &str) -> Option { let mut split = kb.split('+'); - if split.clone().count() == 2 { + if kb != "+" && split.clone().count() == 2 { let modifier = split.next().unwrap(); let key = split.next().unwrap(); let parsed = Self::parse_key(key);