Condition That Tests if I'm Able to Enter Text?

Hi Everyone,

I'm trying to set a condition that tests if I'm able to enter text. Like when you are about to type in a text editor, or renaming a file, etc...

What condition should I use ?

I'm sorry I can't explain it better than that. ^^

Thanks a lot :pray:

Hey Martin,

Basically you can't do this on macOS – i.e. it has no general API to allow a utility to test whether an edit environment is in use at a given moment.

There are some workarounds that can work in certain circumstances, but there is no panacea.

Search the forum for "text field", and you'll find some discussion. Here's one example:

Can I check if I am in a text field?

-Chris

2 Likes

Hi Chris thanks a lot for your answer. I'll look into that!

1 Like