mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-27 06:19:36 +00:00
34 lines
765 B
C++
34 lines
765 B
C++
// -*- C++ -*-
|
|
/**
|
|
* \file KeyModifier.h
|
|
* This file is part of LyX, the document processor.
|
|
* Licence details can be found in the file COPYING.
|
|
*
|
|
* Keyboard modifier state representation.
|
|
*
|
|
* \author John Levon
|
|
*
|
|
* Full author contact details are available in file CREDITS.
|
|
*/
|
|
|
|
#ifndef KEYMODIFIER_H
|
|
#define KEYMODIFIER_H
|
|
|
|
namespace lyx {
|
|
|
|
/// Set of KeyModifierFlags
|
|
typedef unsigned int KeyModifier;
|
|
|
|
/// modifier key states
|
|
enum KeyModifierFlags : unsigned int {
|
|
NoModifier = 0, //< no modifiers held
|
|
ControlModifier = 1 << 0, //< control button held
|
|
AltModifier = 1 << 1, //< alt key held
|
|
ShiftModifier = 1 << 2, //< shift key held
|
|
MetaModifier = 1 << 3 //< meta key held
|
|
};
|
|
|
|
} // namespace lyx
|
|
|
|
#endif // KEYMODIFIER_H
|