diff --git a/demos/index.html b/demos/index.html index 00c229512..75328a512 100644 --- a/demos/index.html +++ b/demos/index.html @@ -232,6 +232,17 @@
Build custom blocks and setup a toolbox using Blockly.
+ + + + + + + +
Keyboard Navigation
+
Demos keyboard navigation.
+ + diff --git a/demos/keyboard_nav/icon.png b/demos/keyboard_nav/icon.png new file mode 100644 index 000000000..ff96ab5ca Binary files /dev/null and b/demos/keyboard_nav/icon.png differ diff --git a/demos/keyboard_nav/index.html b/demos/keyboard_nav/index.html new file mode 100644 index 000000000..e2701e3c7 --- /dev/null +++ b/demos/keyboard_nav/index.html @@ -0,0 +1,292 @@ + + + + + Blockly Demo: Keyboard Navigation + + + + + + + +

Blockly > + Demos > Keyboard Navigation

+ +

Keyboard Navigation is our first step towards an accessible Blockly.
+ You can enter accessibility mode by shift clicking anywhere on the + workspace or on a block.
Some basic commands for moving around are below. + More complete documentation is still in progress.

+ Workspace Navigation
+ W: Previous block/field/input at the same level
+ A: Up one level (Field (or input) -> Block -> Input (or field) -> Block -> + Stack -> Workspace)
+ S: Next block/field/input at the same level
+ D: Down one level (Workspace -> Stack -> Block -> Input ( or field) -> Block + -> Field (orinput))
+ T: Will open the toolbox. Once in there you can moving around using the WASD keys. And insert a block by hitting Enter
+ X: While on a connection hit X to disconnect the block after the cursor

+ + Pre Order Traversal
+ Feel free to just play around in accessibility mode or hit the button below to + see the demo. The demo uses preorder tree traversal as an alternative way to navigate the blocks, + connections, and fields on the workspace.

+

+ + + + +

+ + +

+ +
+ + + + + + + + +