Extensions add specific functionality to Items API. They rely on modules within LT being available.
--
Enables keyboard shortcuts to perform an action against a question or on the assessment player.
Methods
run(mapopt)
Sets up listeners to enable item or player keyboard shortcuts.
Supports:
- setting an MCQ response on items with a single MC questions, not multi-part.
- enabling answer masking mode.
- setting a mask on MCQ possible responses.
- toggle flagging of an item.
All listeners will fire when you call run()
. Pass a custom
map if you want to remove any shortcuts.
See example section below for bindings.
Since
- 0.4.0
Example
import { LT } from '@caspingus/lt/src/assessment/index';
LT.init(itemsApp); // Set up LT with the Items API application instance variable
LT.extensions.keyboardShortcuts.run();
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
map |
object |
<optional> |
A map of keyboard shortcut options.
|