Fixed crashes with the shortcuts that are not defined in shortcuts.cpp

This commit is contained in:
pereverzev_v 2020-01-09 10:40:51 +02:00
parent 3aa3ec93a3
commit 90895e0ab2

View file

@ -97,6 +97,9 @@ bool ActionEventObserver::eventFilter(QObject *watched, QEvent *event)
Ms::Shortcut* shortcut = Ms::Shortcut::getShortcutByKeySequence(shortCutEvent->key(), m_scoreState);
if (!shortcut)
return false;
telemetryService()->sendEvent("shortcut", shortcut->key());
}