Make it more explicit that Key modifiers is a bit field
This commit is contained in:
parent
1128d941ff
commit
9c2f9d5547
|
@ -14,9 +14,9 @@ struct Key
|
||||||
enum class Modifiers
|
enum class Modifiers
|
||||||
{
|
{
|
||||||
None = 0,
|
None = 0,
|
||||||
Control = 1,
|
Control = 1 << 0,
|
||||||
Alt = 2,
|
Alt = 1 << 1,
|
||||||
ControlAlt = 3
|
ControlAlt = Control | Alt
|
||||||
};
|
};
|
||||||
enum NamedKey : Codepoint
|
enum NamedKey : Codepoint
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user