How to Disable button press when focus moves to another screen

How can CL detect which screen and component has the focus?
I have a button on one screen and action associated with that button press. I like to reset the button if student navigates to another screen. How can I do that?

You can do that without CL!

There’s a checkbox option for all action buttons:

1 Like

That is great. Thanks for prompt support.