Sticky Keys Assessor API
Sticky Keys Assessor Overview
Assess whether the user needs the help of the sticky key feature. Currently, the assessor is simply compare whether the user input string is the same as the expected string.
On This Page
Still need help?
Join the infusion-users mailing list and ask your questions there.
Adding a Sticky Keys Assessor Component
Option 1: Typically used as a sub-component of a Sticky Key Panel.
Adding as sub-component:
stickyKeysAssessor: { type: "gpii.firstDiscovery.keyboard.stickyKeysAssessment", options: {} }
Option 2: Adding as a stand alone component:
var myStickyKeyAssessor = gpii.firstDiscovery.keyboard.stickyKeysAssessment(options);
Grades
The base grades used by the Sticky Keys Assessor:
Model
Path | Description | Values | Default |
---|---|---|---|
offerAssistance | Whether or not the sticky key feature should be offered. | Boolean | undefined |
Options
Name | Description | Values | Default |
---|---|---|---|
requiredInput | The expected string to be input. | String | "" |
Dependencies
<script type="text/javascript" src="src/lib/infusion/infusion-custom.js"></script> <script type="text/javascript" src="src/js/stickyKeysAssessment.js"></script>