11 return Qt::Key_unknown;
13 int keynum =
Event->key();
15 if ((keynum != Qt::Key_Shift ) && (keynum !=Qt::Key_Control ) &&
16 (keynum != Qt::Key_Meta ) && (keynum !=Qt::Key_Alt ) &&
17 (keynum != Qt::Key_Super_L) && (keynum !=Qt::Key_Super_R ) &&
18 (keynum != Qt::Key_Hyper_L) && (keynum !=Qt::Key_Hyper_R ) &&
19 (keynum != Qt::Key_AltGr ) && (keynum !=Qt::Key_CapsLock ) &&
20 (keynum != Qt::Key_NumLock) && (keynum !=Qt::Key_ScrollLock ))
23 Qt::KeyboardModifiers modifiers =
Event->modifiers();
24 if (modifiers != Qt::NoModifier)
26 int modnum = Qt::NoModifier;
27 if (((modifiers & Qt::ShiftModifier) != 0U) &&
29 (keynum != Qt::Key_Backtab))
31 if ((modifiers & Qt::ControlModifier) != 0U)
33 if ((modifiers & Qt::MetaModifier) != 0U)
35 if ((modifiers & Qt::AltModifier) != 0U)
37 return (keynum | modnum);