Merge pull request #59 from quininer/modsspace

Allow key_binding mods have space
This commit is contained in:
Joe Wilm 2017-01-05 07:15:12 -08:00 committed by GitHub
commit 3c57c03887
1 changed files with 2 additions and 2 deletions

View File

@ -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,