Fix condition to filter out items for Command/Action key lists (#4894)

I introduced this bug when amended ff0dfb8331
This commit is contained in:
David Capello 2025-01-06 16:57:34 -03:00
parent ff0dfb8331
commit 2aa0f3be51
1 changed files with 3 additions and 2 deletions

View File

@ -584,8 +584,9 @@ private:
// Fill the 'Commands' and 'Action Modifier' lists
for (const KeyPtr& key : m_keys) {
if ((key->type() == KeyType::Command && !key->isCommandListed()) &&
(key->type() != KeyType::Action)) {
// If it's not a listed Command or Action key, we go to the next key...
if (!((key->type() == KeyType::Command && key->isCommandListed()) ||
(key->type() == KeyType::Action))) {
continue;
}