]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/key_state.h
better selection and scrolling behaviour
[lyx.git] / src / frontends / key_state.h
index 97c64b70d19608e1db42bd902a05bb0f6856b45d..258fd4599e9b89b168d7a312382abd62ae48ff23 100644 (file)
@@ -5,7 +5,7 @@
  *
  * Keyboard modifier state representation.
  *
- * \author John Levon 
+ * \author John Levon
  *
  * Full author contact details are available in file CREDITS
  */
 #define KEY_STATE_H
 
 /// modifier key states
-namespace key_modifier { 
+namespace key_modifier {
        enum state {
                none    = 0, //< no modifiers held
-               ctrl    = 1, //< control button held
+               ctrl    = 1, //< control button held
                alt     = 2, //< alt/meta key held
                shift   = 4  //< shift key held
        };
 
+
 inline state operator|(state const & s1, state const & s2)
 {
        int const i1(static_cast<int>(s1));
@@ -30,12 +30,12 @@ inline state operator|(state const & s1, state const & s2)
        return static_cast<state>(i1 | i2);
 }
 
+
 inline void operator|=(state & s1, state s2)
 {
-        s1 = static_cast<state>(s1 | s2);
+       s1 = static_cast<state>(s1 | s2);
 }
+
 } // namespace key_modifier
 
 #endif // KEY_STATE_H