# Showing/hiding widgets and buttons with modifier keys inside Button groups doesn't work properly

**URL:** <https://community.folivora.ai/t/showing-hiding-widgets-and-buttons-with-modifier-keys-inside-button-groups-doesnt-work-properly/6238>\
**Category:** Bugs or Unexpected Behavior\
**Tags:** touch-bar, buttongroup\
**Created:** [January 15, 2019, 3:10pm UTC](https://community.folivora.ai/t/showing-hiding-widgets-and-buttons-with-modifier-keys-inside-button-groups-doesnt-work-properly/6238 "2019-01-15T15:10:35Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Caliguvara](https://community.folivora.ai/user_avatar/community.folivora.ai/caliguvara/32/42570_2.png) [@Caliguvara](https://community.folivora.ai/u/Caliguvara)\
**Post date:** [January 15, 2019, 3:10pm UTC](https://community.folivora.ai/t/showing-hiding-widgets-and-buttons-with-modifier-keys-inside-button-groups-doesnt-work-properly/6238/1 "2019-01-15T15:10:35Z")

</div>

**See the Screenshot below.  
Basically Widgets and buttons that should appear only when a modifier key is pressed do not appear, Widgets that should disappear once you push this button aren't shown at all.  
This happens only inside a button group, if the widgets or buttons are copied directly to the "Global" List they appear and disappear as they should.**

**Affected input device: Touch Bar (inside groups)**

**Screenshots**

 ![18](https://community.folivora.ai/uploads/default/original/2X/8/87570de9d7de3ea1c14d6888ca0cf1d8558bf5fd.png)  
 ![47](https://community.folivora.ai/uploads/default/original/2X/7/74ade849929fe799d15c8d51b1ce340cb1838c9e.jpeg)  
 ![09](https://community.folivora.ai/uploads/default/original/2X/4/4d0ea1e34092bbbee7cf7030f19d40ebdb1438c6.jpeg)  
 ![53](https://community.folivora.ai/uploads/default/original/2X/9/9d3b5f000b4abc4568a8e6e4f1682ac6d71dc3d9.jpeg)

**Device information:**

- Type of Mac: MacBookPro15,1 or MacBookPro15,3
- macOS version: 10.14.3 Beta (18D38a)
- BetterTouchTool version: 2.696

**Additional information (e.g. StackTraces, related issues, screenshots, workarounds, etc.):**  
xxx

Any ideas?  
Thanks, have a great evening 🙂

---

<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:** [January 15, 2019, 3:52pm UTC](https://community.folivora.ai/t/showing-hiding-widgets-and-buttons-with-modifier-keys-inside-button-groups-doesnt-work-properly/6238/2 "2019-01-15T15:52:32Z")

</div>

Seems to work fine here, are you sure it's not the other one showing? (Try to set a different size for both, then you should see them switching when option is pressed)

---

<div class="post-metadata">

**Author:** ![Caliguvara](https://community.folivora.ai/user_avatar/community.folivora.ai/caliguvara/32/42570_2.png) [@Caliguvara](https://community.folivora.ai/u/Caliguvara)\
**Post date:** [January 15, 2019, 4:22pm UTC](https://community.folivora.ai/t/showing-hiding-widgets-and-buttons-with-modifier-keys-inside-button-groups-doesnt-work-properly/6238/3 "2019-01-15T16:22:44Z")

</div>

Ok, this brings up the "normal" Application switcher (the one that's not associated with ⌘Q).  
Still both of them do not respond to any modifier key (⌥ here, I also tried to change them without success).  
The bar looks like this now, but the idea would be that once I hold ⌥, the normal app Switcher disappears in order to bring up the one that quits the apps **[edit: and the Textbutton "Quit:", that should not have been there without any modifier key]**.

 ![image](https://community.folivora.ai/uploads/default/original/2X/2/26c5d88b31936c588980ca77ce43923b35d9ef19.png)

---

<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:** [January 15, 2019, 4:51pm UTC](https://community.folivora.ai/t/showing-hiding-widgets-and-buttons-with-modifier-keys-inside-button-groups-doesnt-work-properly/6238/4 "2019-01-15T16:51:01Z")

</div>

I think the problem may be that the system thinks you are executing cmd+opt+q in that case.  
You can try whether the correct widget is executed by assigning an action like "Show HUD" or expose.

---

<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:** [January 15, 2019, 4:59pm UTC](https://community.folivora.ai/t/showing-hiding-widgets-and-buttons-with-modifier-keys-inside-button-groups-doesnt-work-properly/6238/5 "2019-01-15T16:59:12Z")

</div>

Try instead of cmd+q to assign the "Run Apple Script" predefined action and run a script like this one:

```auto
tell application (path to frontmost application as text)
	quit
end tell

```

---

<div class="post-metadata">

**Author:** ![Caliguvara](https://community.folivora.ai/user_avatar/community.folivora.ai/caliguvara/32/42570_2.png) [@Caliguvara](https://community.folivora.ai/u/Caliguvara)\
**Post date:** [January 15, 2019, 5:15pm UTC](https://community.folivora.ai/t/showing-hiding-widgets-and-buttons-with-modifier-keys-inside-button-groups-doesnt-work-properly/6238/6 "2019-01-15T17:15:21Z")

</div>

None of them working (HUD or the apple script as attached), in both cases the modifier keys settings are ignored regarding less the key (tried also with ⇧, failed too).

If I just copy the original content of the Touch Bar Button Group out of the group directly into the Global Section, they appear and disappear perfectly.

---

<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:** [January 15, 2019, 6:45pm UTC](https://community.folivora.ai/t/showing-hiding-widgets-and-buttons-with-modifier-keys-inside-button-groups-doesnt-work-properly/6238/7 "2019-01-15T18:45:13Z")

</div>

Sorry, I didn't realize you where using it in a group.  
Could you try whether 2.697 (just uploaded) fixes this for you?

---

<div class="post-metadata">

**Author:** ![Caliguvara](https://community.folivora.ai/user_avatar/community.folivora.ai/caliguvara/32/42570_2.png) [@Caliguvara](https://community.folivora.ai/u/Caliguvara)\
**Post date:** [January 15, 2019, 7:22pm UTC](https://community.folivora.ai/t/showing-hiding-widgets-and-buttons-with-modifier-keys-inside-button-groups-doesnt-work-properly/6238/8 "2019-01-15T19:22:14Z")

</div>

Winner of a virtual beer! 😃  
Perfect, thank you!!

Honestly, thank you. This really drove me nuts 😃 And compliments for the great job you do, the program itself is already awesome, but your support is exemplary 👍🏼
