# Keyboard Shortcut is triggering outside of CAG it is grouped under

**URL:** <https://community.folivora.ai/t/keyboard-shortcut-is-triggering-outside-of-cag-it-is-grouped-under/36001>\
**Category:** Bugs or Unexpected Behavior\
**Tags:** cag, keyboard-shortcut, advanced-conditions\
**Created:** [March 1, 2024, 5:37pm UTC](https://community.folivora.ai/t/keyboard-shortcut-is-triggering-outside-of-cag-it-is-grouped-under/36001 "2024-03-01T17:37:33Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![atwixtor](https://community.folivora.ai/user_avatar/community.folivora.ai/atwixtor/32/11970_2.png) [@atwixtor](https://community.folivora.ai/u/atwixtor)\
**Post date:** [March 1, 2024, 5:37pm UTC](https://community.folivora.ai/t/keyboard-shortcut-is-triggering-outside-of-cag-it-is-grouped-under/36001/1 "2024-03-01T17:37:33Z")

</div>

**Describe the bug**

Recently (within the last month or two I would guess), a keyboard shortcut I have configured inside a "Busy" CAG (Conditional Activation Group) has started triggering when the CAG conditions are FALSE (not activated).

This trigger ALSO has its own ADDITIONAL advanced conditions, which are TRUE.

Before, these additional advanced conditions were only evaluated when the CAG was TRUE.

After/now, it would appear the trigger is firing if any of the trigger's advanced conditions are TRUE, even when the CAG the trigger is inside is FALSE.

Did something change recently that would cause this unexpected behavior?

* * *

**Affected input device (e.g. MacBook Trackpad, Magic Mouse/Trackpad, Touch Bar, etc.):**

Keyboard Shortcuts

* * *

**Screenshots**  
If applicable, add screenshots to help explain your problem. (You can just paste or drag them here)

CAG Conditions (the CAG where the Keyboard Shortcut is defined):

 ![image](https://community.folivora.ai/uploads/default/original/3X/4/6/46a9cfb275857b3b2d9779bc2e619a1c17a9d729.jpeg)

Trigger inside CAG - Advanced Conditions...

 ![image](https://community.folivora.ai/uploads/default/original/3X/7/1/71aafc2ca4dd3e6917a74170a87262921df621c7.jpeg)

* * *

**Device information:**

- Type of Mac: Macbook Pro
- macOS version: Sonoma 14.3.1 (23D60)
- BetterTouchTool version: 4.403

* * *

**Additional information (e.g. crash logs, related issues, etc.):**

---

<div class="post-metadata">

**Author:** ![Andreas\_Hegenberg](https://community.folivora.ai/user_avatar/community.folivora.ai/andreas_hegenberg/32/39221_2.png) [@Andreas\_Hegenberg](https://community.folivora.ai/u/Andreas_Hegenberg)\
**Post date:** [March 1, 2024, 5:48pm UTC](https://community.folivora.ai/t/keyboard-shortcut-is-triggering-outside-of-cag-it-is-grouped-under/36001/2 "2024-03-01T17:48:55Z")

</div>

are you sure the shortcut has not accidentally been copied somewhere else? (try checking the „show hud“ option to see whether it’s really that one that is triggering)

---

<div class="post-metadata">

**Author:** ![atwixtor](https://community.folivora.ai/user_avatar/community.folivora.ai/atwixtor/32/11970_2.png) [@atwixtor](https://community.folivora.ai/u/atwixtor)\
**Post date:** [March 1, 2024, 6:27pm UTC](https://community.folivora.ai/t/keyboard-shortcut-is-triggering-outside-of-cag-it-is-grouped-under/36001/3 "2024-03-01T18:27:58Z")

</div>

I already have the HUD for that trigger setup, which is how I noticed it.

If I go to Keyboard Shortcuts, then visit the "All Apps" sidebar item, will it show me all Keyboard triggers from all sidebar CAGs? Or is it showing me Keyboard shortcuts that are NOT assigned to a CAG?

Because I am seeing this one in the All Apps section (as well as the Busy CAG section).

What's odd is that if I disable it in the All Apps section, it is also disabled in the "Busy" CAG section, so that makes me think it is the same trigger... a bit confused. It's the same UUID.

---

<div class="post-metadata">

**Author:** ![Andreas\_Hegenberg](https://community.folivora.ai/user_avatar/community.folivora.ai/andreas_hegenberg/32/39221_2.png) [@Andreas\_Hegenberg](https://community.folivora.ai/u/Andreas_Hegenberg)\
**Post date:** [March 1, 2024, 6:29pm UTC](https://community.folivora.ai/t/keyboard-shortcut-is-triggering-outside-of-cag-it-is-grouped-under/36001/4 "2024-03-01T18:29:11Z")

</div>

No the all apps section just means that these triggers will always be active, for all apps. If you see it there as well it is duplicated there. Try to delete it there 🙂

---

<div class="post-metadata">

**Author:** ![atwixtor](https://community.folivora.ai/user_avatar/community.folivora.ai/atwixtor/32/11970_2.png) [@atwixtor](https://community.folivora.ai/u/atwixtor)\
**Post date:** [March 1, 2024, 6:35pm UTC](https://community.folivora.ai/t/keyboard-shortcut-is-triggering-outside-of-cag-it-is-grouped-under/36001/5 "2024-03-01T18:35:39Z")

</div>

I did that, but it removed it from the CAG as well. Which makes sense because it was the same exact UUID.

At least I copied it so I could just paste it back into the CAG. Now it is NOT appearing in the All Apps and is only appearing the CAG it belongs to. Thank you.

Maybe that trigger was corrupted?

---

<div class="post-metadata">

**Author:** ![Andreas\_Hegenberg](https://community.folivora.ai/user_avatar/community.folivora.ai/andreas_hegenberg/32/39221_2.png) [@Andreas\_Hegenberg](https://community.folivora.ai/u/Andreas_Hegenberg)\
**Post date:** [March 1, 2024, 6:41pm UTC](https://community.folivora.ai/t/keyboard-shortcut-is-triggering-outside-of-cag-it-is-grouped-under/36001/6 "2024-03-01T18:41:25Z")

</div>

Oh yes, this definitely sounds like a slight corruption. I think I know why it can happen - maybe I'll add a check that prevent this.
