mirror of
https://github.com/scratchfoundation/scratch-blocks.git
synced 2025-08-28 22:10:31 -04:00
.. | ||
libs | ||
appview.component.js | ||
clipboard.service.js | ||
fieldview.component.js | ||
messages.js | ||
README | ||
toolbox_treeview.component.js | ||
toolboxview.component.js | ||
tree.service.js | ||
utils.service.js | ||
workspace_treeview.component.js | ||
workspaceview.component.js |
Accessible Blockly ======= Google's Blockly is a web-based, visual programming editor: accessible to blind users. What Does Accessible Blockly Do? ----------- * renders a version of the blockly toolbox and workspace that is easily navigable using solely the keyboard * renders a version of the blockly toolbox and workspace that is compatible with JAWS/NVDA screen readers on Firefox for Windows. * Accessible Blockly will hopefully be modified to work well with most other screen readers, however JAWS and NVDA are the most robust screen readers and are compatible with many more aria tags than other screen readers. Therefore it was easiest to first be compatible with them. * Accessible Blockly will be modified to suit accessibility needs other than visual impairments as well. Deaf users will be expected to continue using Blockly over Accessible Blockly. Use Accessible Blockly in Your Web App ----------- 1. See the basic demo under blockly/demos/accessible. This covers the absolute minimum required to import Accessible Blockly into your own web app. 2. You will need to import the files in the same order as in the demo: utils.service.js will need to be the first Angular file imported. 3. When the DOMContentLoaded event fires, call ng.platform.browser.bootstrap() on the main component to be loaded. This will usually be blocklyApp.AppView, but if you have another component that wraps it, use that one instead. 4. If you want to customize the toolbar, you will need an ACCESSIBLE_GLOBALS object in the global scope. It should have a 'toolbarButtonConfig' key, whose value is an Array. Each element in this array should be an Object with two keys: 'text' (the text to display on the button) and 'action' (the function that gets run when the button is clicked). 5. Note that we do not support having multiple Accessible Blockly apps in a single webpage.