@@ -41,17 +41,21 @@ bool KeyboardEventFilter::eventFilter(QObject*, QEvent* e) {
4141 }
4242
4343 QKeySequence ks = getKeySeq (ke);
44+ qWarning () << " > keySeq:" << ks.toString ();
4445 if (!ks.isEmpty ()) {
46+ qWarning () << " > lookup control" ;
4547 ConfigValueKbd ksv (ks);
4648 // Check if a shortcut is defined
4749 bool result = false ;
4850 // using const_iterator here is faster than QMultiHash::values()
4951 for (auto it = m_keySequenceToControlHash.constFind (ksv);
5052 it != m_keySequenceToControlHash.constEnd () && it.key () == ksv; ++it) {
5153 const ConfigKey& configKey = it.value ();
54+ qWarning () << " > found CfgKey:" << configKey.group << configKey.item ;
5255 if (configKey.group != " [KeyboardShortcuts]" ) {
5356 ControlObject* control = ControlObject::getControl (configKey);
5457 if (control) {
58+ qWarning () << " > found control, set to 1" ;
5559 // qDebug() << configKey << "MidiOpCode::NoteOn" << 1;
5660 // Add key to active key list
5761 m_qActiveKeyList.append (KeyDownInformation (
@@ -67,6 +71,9 @@ bool KeyboardEventFilter::eventFilter(QObject*, QEvent* e) {
6771 }
6872 }
6973 }
74+ if (result == false ) {
75+ qWarning () << " ! no CfgKey found" ;
76+ }
7077 return result;
7178 }
7279 } else if (e->type () == QEvent::KeyRelease) {
@@ -163,6 +170,18 @@ void KeyboardEventFilter::setKeyboardConfig(ConfigObject<ConfigValueKbd>* pKbdCo
163170 // Mixxx.
164171 m_keySequenceToControlHash = pKbdConfigObject->transpose ();
165172 m_pKbdConfigObject = pKbdConfigObject;
173+
174+ qWarning () << " m_keySequenceToControlHash:" ;
175+ QHashIterator<ConfigValueKbd, ConfigKey> it (m_keySequenceToControlHash);
176+ while (it.hasNext ()) {
177+ it.next ();
178+ const QKeySequence ks = it.key ().value ;
179+ const QString kss = ks.toString ();
180+ if (kss.startsWith (" Shift" )) {
181+ qWarning ().noquote () << " " << ks.toString () << " "
182+ << it.value ().group << it.value ().item ;
183+ }
184+ }
166185}
167186
168187ConfigObject<ConfigValueKbd>* KeyboardEventFilter::getKeyboardConfig () {
0 commit comments