Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
@blockly/keyboard-navigation
Advanced tools
A Blockly plugin that adds keyboard navigation support.
A Blockly plugin that adds keyboard navigation to Blockly. This allows users to use the keyboard to navigate the toolbox and the blocks. More information on keyboard navigation can be found on our keyboard navigation documentation page.
yarn add @blockly/keyboard-navigation
npm install @blockly/keyboard-navigation --save
import * as Blockly from 'blockly';
import {NavigationController} from '@blockly/keyboard-navigation';
// Inject Blockly.
const workspace = Blockly.inject('blocklyDiv', {
toolbox: toolboxCategories,
});
// Initialize plugin.
const navigationController = new NavigationController();
navigationController.init();
navigationController.addWorkspace(workspace);
// Turns on keyboard navigation.
navigationController.enable(workspace);
This plugin exports the following classes:
NavigationController
: Class in charge of registering all keyboard shortcuts.Navigation
: This holds all the functions necessary to navigate around Blockly using the keyboard.FlyoutCursor
: Cursor in charge of navigating the flyout.LineCursor
: Alternative cursor that tries to navigate blocks like lines of code.You should only need to use these if you plan on changing the default functionality.
Apache 2.0
FAQs
A Blockly plugin that adds keyboard navigation support.
The npm package @blockly/keyboard-navigation receives a total of 614 weekly downloads. As such, @blockly/keyboard-navigation popularity was classified as not popular.
We found that @blockly/keyboard-navigation demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.