Can "control loses focus" trigger be used for non-text field objects?

Apr 21, 2020

When you are a keyboard user rather than a mouse user (accessibility/ motor impairment), you press the tab key to cycle through objects on the screen instead of hovering over that area of the screen with a mouse.  As you tab from object-to-object, a yellow box appears around each object to indicate that it is "in focus", and you can thus interact with it (eg. click a button) by using the spacebar.

By that rationale (yellow box = in focus), I had hoped that when the user 'tabs' past a certain object, Storyline would consider it to have 'lost focus' and thus could activate a trigger. It doesn't seem to be working, and the only references to "control loses focus" that I can find in the forum relate to its use with text entry fields. 

Can the "loses focus" trigger be used with objects other than text entry fields?

5 Replies
Lauren Connelly

Hi Fiona!

I'm excited to help you out! To clarify, it sounds like you want the state of an object to change when the user clicks (using a mouse or keyboard) outside of another object.

In this example below, I've added a textbox and button on a slide. By default, when the user tabs to an object, the object changes to the state "Selected". When the user leaves the object, then the state is "Visited".

The Initial State of the text box is hidden, and when the State of the Button is Visited then the text box changes to the Normal state.

  • A keyboard user could activate the "Click here" button which fires off the trigger to change the textbox to the normal state.

Instead of using the "Object loses focus" trigger, what about using state changes? 

Please let me know if you have additional questions!

Fiona Macelli

Thanks for the reply Lauren! In your example, does the user need to select the button (using the space bar) in order to have the text appear?  If so, then it's the same as on-click, which isn't what I want.  

I believe I tried this and the object only registers as 'selected' and then 'visited' when the user actually 'selects' by interacting with the object, not just when tabbing past it.