Change InputManager trigger behavior to subset triggering

Previously, InputManager triggered an action only for exact matching. If 'CTRL' was configured, the action would be released as soon as 'CTRL + R' was pressed.
The behavior is changed now that the action stays active as long as its configured combination is keeping pressed (ignoring any extra keys/buttons).

ref T595
This commit is contained in:
Roland Rossgotterer
2019-04-10 15:42:02 +02:00
committed by Mat Sutcliffe
parent 6f1fb20b1c
commit 59c69e379a
2 changed files with 28 additions and 9 deletions

View File

@@ -140,6 +140,7 @@ namespace BlackCore
QMap<QString, QPixmap> m_availableActions;
QHash<BlackMisc::Input::CHotkeyCombination, QString> m_configuredActions;
QSet<QString> m_activeActions;
QVector<BindInfo> m_boundActions;
bool m_actionRelayingEnabled = false;