Forum Discussion
Keyboard Shortcut not working on Layers
I have created a trigger for keyboard shortcut to enable learners to move through the slides using the right arrow. This works just fine when moving between slides but doesn't work at all for moving between layers. The trigger is set up to show the next layer when the user presses arrow key after clicking on this layer. Any ideas? Thanks!
Hello Jennifer!
I'm happy to help! The standard keyboard shortcuts for screen readers are TAB, Enter key, Space bar, and arrow keys. I wouldn't recommend requiring the user to use these keys when adding the trigger "User presses key" because they each have their own purpose, which will take priority over a trigger that includes an action when the user presses the Enter key.
The Enter key and Space bar are used to select anything. If the user needs to close a layer, I'd recommend adding a "Close" button to the Layer for a learner to select. Lastly, make sure to add a trigger to Hide Layer when the User Clicks (Name of the button).
Please let me know if you have any follow-up questions!
Hi Mary!
It sounds like you're trying to find a way to use the User Presses Key trigger without requiring the user to click on the slide first.
One workaround is to add a button to the slide and add a trigger to Change the State of the button to Selected when the timeline starts on the slide. Then format the button to be completely transparent.
Let me know if this works for you!
- MaryTCollins-ebCommunity Member
Thanks Lauren. It's not as such that I'm trying to let them progress without clicking on the slide first, they will have clicked on the slide (base layer) but the key trigger won't allow them to move between layers, just slides. I need this key trigger for accessibility and it works fine for moving between the slides just not the layers.
Hi Mary!
Thank you for clarifying! I've tested this on my end and I can use this trigger to navigate to layers and between layers.
I'm attaching a sample file. Let me know what you think!
- MaryTCollins-ebCommunity Member
Thanks Lauren, is there any way to set this up without it having to be attached to another action i.e. without the "after clicking on..."
- RenGomezStaff
Hi Mary,
There's not a way to change the object action "after clicking on," but you can move it from the textbox to "after clicking on this slide" and see how that behavior works for you!
- JenniferMessedeCommunity Member
Hi. I'm having a similar issue in SL360, though pressing Enter to close a layer is working for me in preview mode. It's not working for a colleague who's testing my eLearning using the JAWS screen reader.
The sample slide and the other suggestions require the user to click on something, and we can't use mouse clicks for those who use screen readers. So, when I preview the sample slide, pressing L does nothing without first clicking.
- JenniferMessedeCommunity Member
Hmm. I started off with a Close button with a trigger to hide the layer when the user clicks that button. My colleague with JAWS said it didn't work and asked me to remove the Close button and have all learners press Enter to close the layer. But that didn't work for her either.
I'll put my Close buttons back. I'm glad I saved a prior version of this thing.
- JenniferMessedeCommunity Member
Well, in preview mode, pressing Enter when the Close button is in focus does not close the layer. I also tried the space bar and all of the arrow keys. Tab moves the focus around the layer. The only way to close (hide) the layer is to mouse click on the Close button, and we're not allowed to require mouse work for those using screen readers.
I published a scene to Review 360 to see what happens there. Same issue. The only way to close/hide a layer is to click on the Close button.
Hi Jennifer!
If you have a trigger to hide a layer when the user presses Enter after clicking on the button, it would require the user to select the button twice to initiate the action. If you just want the user to select a button to hide the layer, add a trigger to hide the layer when the user clicks the button. By default, the layer will hide when the user selects the button, whether they are selecting it with a mouse or the keyboard.
Do you mind sharing your file so I can test it on my end as well? You can attach the .story file to this public discussion or upload it privately in a support case.
- JenniferMessedeCommunity Member
I'll upload a sample scene taken from the larger file using the private method. I have several slides with four or five layers of content, followed by a quick check question. The feedback layers on the questions work fine without mouse clicks, but I just can't get the content layers to close without mouse clicks.