Trigger floating menu item on release

Im trying to set up a floating menu that appears when I hold down right command, and disappears when I release it. Ive gotten it to work with key sequences. I also have a conditional group that lets me navigate the floating menu with j & k. Pressing enter triggers the menu item.

But I wonder if it is possible to have the menu item trigger when releasing the modifier (right cmd), rather than having to press enter?

I know that I can just use the "active on hover" start/end groups, if I wanted this to work with my mouse hovering over an item. But I can't figure out a way to do it when the item is selected/given focus with arrow keys (j&k).

Is it possible?

Thank you, but does that answer my question? Sorry if I misunderstood. I already have the floating menu appear correctly. My issue is with triggering the selected menu items when releasing the modifier.

Ah, sorry, I misunderstood you ... I must be a bit tired already ... :yawning_face: let me think...

1 Like

it‘s possible, I‘m not on my Mac today, will post an example tomorrow.

You also don’t need key sequences for that at all

Thanks Andreas! I'll try to patiently await your example.

You also don’t need key sequences for that at all

Does it have to do with the "Modifier based visibility"? (not so patient....)

yes, you should be able to make the menu visible using that

I see. I tried that first, but could not get it to work. That's why I did it via key sequences. That is, im able to see the menu, but unable to make conditional group with j&k as arrow keys. And no idea how to trigger items on release.

Edit: Actually, I got j & k navigation working without key sequences, by enabling a "forced keyboard focus" setting. But im not sure if this way is more beneficial than using sequences.

Anyway, point still stands: Im not able to trigger items on release :blush:

DCDidSs3

This setting should do the trick:

There are also various other ways to achieve the same for different situations. For completeness:

  • You could use the "On Disappear trigger" and the predfined action "Trigger hovered menu item":

  • You could use the "Show / Hide Floating Menu ActioN" with this option:

Hi, and thanks for detailed response. Unfortunately Im unable to accomplish any of them.

1st: I've tried this, but it doesnt work. Don't know how to troubleshoot it, but the setting is on and nothing is triggering on release.
2nd: This option is not availabe to me, somehow. I only see Actions executed on trigger/Hover start/Hover end.
3rd: Ive tried this as well, but without success. But im not sure how to register/record only the modifier key up state. I tried holding down the key before pressing record, but im not sure it registers correctly (see screenshot).

which version of BTT are you running? (many of the floating menu features are only in the latest releases as this is still a very much evolving feature)

(you are recording the up key correctly, however this should display if you are on a current version)

Im on the latest setapp release (4.643)

weird, at least 1 and 3 should work fine with that version. The options for 2. will be in the next setapp release.

Maybe a quick test: Does this menu not trigger the action when releasing the cmd key for you?
hover_test.bttpreset (37.9 KB)

Thanks!

No, nothing is happening. But im also not able to select the one menu item at all (without using the mouse of course); arrow keys are not responding to the menu. Is it supposed to just work "straight out of the box" — without having to select the item?

Here is a visual (I added color to background hover to better see when the item has focus):

WsCxPu2N

Nothing is happening on release, but its working with mouse hover

No this one was just for testing whether releasing the modifier key when an item is selected / hovered will trigger it. No keyboard navigation configured in this example.

I see. Well, the items are not selected unless I mouse over it. I see there is a setting called "Has initial Focus", which I thought would give the respective item focus when menu becomes visible. But nothing is happening when toggled.

Ah I think I found an issue that can block the release feature from working when using keyboard navigation. I'll fix that. The new Setapp version should be available in 1-2 days!

1 Like

Thanks!