File tree Expand file tree Collapse file tree
packages/docs/docs/guides/configure/web Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -370,4 +370,14 @@ implement
370370[ ` IPositionable ` ] ( /reference/blockly.ipositionable ) .
371371Examples are the trashcan and the backpack in the [ backpack
372372plugin] ( https://www.npmjs.com/package/@blockly/workspace-backpack ) .
373- Positionables are not yet integrated into the focus system.
373+ Built-in positionables are integrated with the focus system, but if you create
374+ your own you should ensure that they work well with it. The built-in ones follow
375+ this pattern:
376+
377+ * Implement ` IFocusableNode `
378+ * Ensure that the focusable DOM element (the one returned from
379+ ` getFocusableElement() ` ) has ` tabindex="0" `
380+
381+ Depending on the purpose of your positionable, you should also consider
382+ registering a keyboard shortcut to perform its action (e.g. zoom in) or to
383+ directly focus it (e.g. a workspace search field).
You can’t perform that action at this time.
0 commit comments