diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2014-10-15 19:13:51 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2014-10-15 19:13:51 +0100 |
| commit | 9c2f9d55479e7ee895e23d20a38526e1123b4320 (patch) | |
| tree | 8b131dea6729cb73c834851b25e7f1e89a42f8c8 /src/keys.hh | |
| parent | 1128d941ffbdb0889ea402281781d17c7827a5e3 (diff) | |
Make it more explicit that Key modifiers is a bit field
Diffstat (limited to 'src/keys.hh')
| -rw-r--r-- | src/keys.hh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/keys.hh b/src/keys.hh index 262603d8..d579395d 100644 --- a/src/keys.hh +++ b/src/keys.hh @@ -14,9 +14,9 @@ struct Key enum class Modifiers { None = 0, - Control = 1, - Alt = 2, - ControlAlt = 3 + Control = 1 << 0, + Alt = 1 << 1, + ControlAlt = Control | Alt }; enum NamedKey : Codepoint { |
