Ignore Hotkey if Spotlight Search Active

Found a way to suit my need.

Note:
+Space was my original Alfred Hotkey.
image

I changed it to ++Space in Alfred, and then let KM to trigger it (see macro below).
image

The purpose of this change is to keep the original Alfred trigger so that I don't have to adapt to new trigger.

Then I can ask KM to disable some macros or macro groups.
The only thing is that I need to manually enable them afterwards. That's not a problem, because I've been using a hotkey to toggle enable/disable before.

It saves me from the first three unnecessary steps: 1. typing search strings in Alfred interfered by the keyboard mapping macros (set in KM) → 2. disable the macros/macro groups → 3. back to Alfred to type → 4. enable the disabled macros/macro groups.

I don't even need the detection.

1 Like