diff options
author | Joe Wilm <jwilm@users.noreply.github.com> | 2017-01-05 07:15:12 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-05 07:15:12 -0800 |
commit | 3c57c0388727884f9ed4e6066f1b58408ad3fed1 (patch) | |
tree | cf3ee59c8d2bdf64838ed720e6cb3f1b26268791 /src | |
parent | 54525dedb646f61207edaf58933be02ab6bff2f2 (diff) | |
parent | 0b157c4e92eaf1710740e019abbc04f8e69431b1 (diff) | |
download | alacritty-3c57c0388727884f9ed4e6066f1b58408ad3fed1.tar.gz alacritty-3c57c0388727884f9ed4e6066f1b58408ad3fed1.zip |
Merge pull request #59 from quininer/modsspace
Allow key_binding mods have space
Diffstat (limited to 'src')
-rw-r--r-- | src/config.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/config.rs b/src/config.rs index afbae8a3..5daa4455 100644 --- a/src/config.rs +++ b/src/config.rs @@ -256,7 +256,7 @@ impl de::Deserialize for ModsWrapper { use ::glutin::{mods, Mods}; let mut res = Mods::empty(); for modifier in value.split('|') { - match modifier { + match modifier.trim() { "Command" | "Super" => res |= mods::SUPER, "Shift" => res |= mods::SHIFT, "Alt" | "Option" => res |= mods::ALT, @@ -330,7 +330,7 @@ impl de::Deserialize for ModeWrapper { }; for modifier in value.split('|') { - match modifier { + match modifier.trim() { "AppCursor" => res.mode |= mode::APP_CURSOR, "~AppCursor" => res.not_mode |= mode::APP_CURSOR, "AppKeypad" => res.mode |= mode::APP_KEYPAD, |