1
0
Fork 0
mirror of https://github.com/alacritty/alacritty.git synced 2024-11-11 13:51:01 -05:00

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

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,