4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * Keyboard modifier state representation.
11 * Full author contact details are available in file CREDITS.
19 /// modifier key states
22 NoModifier = 0, //< no modifiers held
23 ControlModifier = 1, //< control button held
24 AltModifier = 2, //< alt key held
25 ShiftModifier = 4, //< shift key held
26 MetaModifier = 8 //< meta key held
30 inline KeyModifier operator|(KeyModifier s1, KeyModifier s2)
32 int const i1 = static_cast<int>(s1);
33 int const i2 = static_cast<int>(s2);
34 return static_cast<KeyModifier>(i1 | i2);
38 inline void operator|=(KeyModifier & s1, KeyModifier s2)
40 s1 = static_cast<KeyModifier>(s1 | s2);
46 #endif // KEYMODIFIER_H