]> git.lyx.org Git - lyx.git/blob - src/frontends/KeyModifier.h
Allow compiling with Qt6
[lyx.git] / src / frontends / KeyModifier.h
1 // -*- C++ -*-
2 /**
3  * \file KeyModifier.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * Keyboard modifier state representation.
8  *
9  * \author John Levon
10  *
11  * Full author contact details are available in file CREDITS.
12  */
13
14 #ifndef KEYMODIFIER_H
15 #define KEYMODIFIER_H
16
17 namespace lyx {
18
19 /// Set of KeyModifierFlags
20 typedef unsigned int KeyModifier;
21
22 /// modifier key states
23 enum KeyModifierFlags : unsigned int {
24         NoModifier       = 0,      //< no modifiers held
25         ControlModifier  = 1 << 0, //< control button held
26         AltModifier      = 1 << 1, //< alt key held
27         ShiftModifier    = 1 << 2, //< shift key held
28         MetaModifier     = 1 << 3  //< meta key held
29 };
30
31 } // namespace lyx
32
33 #endif // KEYMODIFIER_H