Skip to content

Commit

Permalink
Add the alt modifier
Browse files Browse the repository at this point in the history
  • Loading branch information
atx committed Oct 24, 2020
1 parent 7979f7b commit d0e502d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ enum wtype_mod {
WTYPE_MOD_SHIFT = 1,
WTYPE_MOD_CAPSLOCK = 2,
WTYPE_MOD_CTRL = 4,
WTYPE_MOD_ALT = 8,
WTYPE_MOD_LOGO = 64,
WTYPE_MOD_ALTGR = 128
};
Expand Down Expand Up @@ -115,7 +116,8 @@ static const struct { const char *name; enum wtype_mod mod; } mod_names[] = {
{"capslock", WTYPE_MOD_CAPSLOCK},
{"ctrl", WTYPE_MOD_CTRL},
{"logo", WTYPE_MOD_LOGO},
{"alt", WTYPE_MOD_ALTGR},
{"win", WTYPE_MOD_LOGO},
{"alt", WTYPE_MOD_ALT},
{"altgr", WTYPE_MOD_ALTGR},
};

Expand Down

0 comments on commit d0e502d

Please sign in to comment.