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:
commit
3c57c03887
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue