Lectora Focus Fix
UPDATED
I’d not a huge fan of Lectora, in fact it wouldn’t be overly dramatic to say that I hate it, it’s fine for a university lecturer to quickly throw together a small eLearning module for their class or something like fire safety training but anything beyond that and it just plain sucks, it’s horrible to use, doesn’t render properly, isn’t accessible, breaks for unknown reasons, doesn’t work with AIR and even their “local application player” doesn’t play the content properly. However, I do occasionally get roped in into fixing bugs in Lectora so we can at least publish some acceptable content, here’s the most recent bit of Lectora that I’ve had to fix:
Lectora Focus - It’s possible to make Lectora keyboard accessible but capturing key presses and responding appropriately, ie left arrow key to go back a page, right arrow key to go to the next page. However since Lectora sticks the content in a frameset, the frame which is looking for the key presses doesn’t have focus by default so users who want to (or have to) use the keyboard need to hit tab twice before they can use all the other keyboard shortcuts which unless you know you have to do, makes it look like the product isn’t keyboard accessible. Adding this line of code to end of the ObjLayerShow() function in trivantis.js on your machine will fix this problem in all future modules you publish:
parent.contentframe.focus();
That wasn’t so hard now was it Trivantis?