aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorquininer kel <quininer@live.com>2017-01-05 21:33:45 +0800
committerquininer kel <quininer@live.com>2017-01-05 21:45:46 +0800
commit0b157c4e92eaf1710740e019abbc04f8e69431b1 (patch)
treecf3ee59c8d2bdf64838ed720e6cb3f1b26268791
parent54525dedb646f61207edaf58933be02ab6bff2f2 (diff)
downloadr-alacritty-0b157c4e92eaf1710740e019abbc04f8e69431b1.tar.gz
r-alacritty-0b157c4e92eaf1710740e019abbc04f8e69431b1.tar.bz2
r-alacritty-0b157c4e92eaf1710740e019abbc04f8e69431b1.zip
Allow key_binding have space
-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,