23 #ifndef __KKEYNATIVE_H
24 #define __KKEYNATIVE_H
26 #include <tdeshortcut.h>
29 typedef union _XEvent XEvent;
32 class KKeyNativePrivate;
86 bool init(
const XEvent* xevent );
94 bool init(
const KKey& key );
109 { init( key );
return *
this; }
117 int keyCodeQt()
const;
130 operator KKey()
const {
return key(); }
177 {
return compare( key ) == 0; }
184 {
return compare( key ) != 0; }
191 {
return compare( key ) < 0; }
206 static bool keyboardHasWinKey();
221 static uint accelModMaskX();
228 static uint modXNumLock();
235 static uint modXLock();
242 static uint modXScrollLock();
250 static uint modXModeSwitch();
254 uint m_code, m_mod, m_sym;
255 KKeyNativePrivate* d;
258 #endif // !__KKEYNATIVE_H
ModFlag
Flags to represent the modifiers.
Representation of a key in the format native of the windowing system (eg.
A KKey object represents a single key with possible modifiers (Shift, Ctrl, Alt, Win).