aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoe Wilm <jwilm@users.noreply.github.com>2017-01-05 07:15:12 -0800
committerGitHub <noreply@github.com>2017-01-05 07:15:12 -0800
commit3c57c0388727884f9ed4e6066f1b58408ad3fed1 (patch)
treecf3ee59c8d2bdf64838ed720e6cb3f1b26268791 /src
parent54525dedb646f61207edaf58933be02ab6bff2f2 (diff)
parent0b157c4e92eaf1710740e019abbc04f8e69431b1 (diff)
downloadalacritty-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.rs4
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,