Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kb exit toolbox #2398

Merged

Conversation

rachel-fenichel
Copy link
Collaborator

The basics

  • I branched from develop
  • My pull request is against develop
  • My code follows the style guide

The details

Resolves

Desired functionality for keyboard navigation.

Proposed Changes

Move cursor to workspace when E pressed in toolbox or flyout.
Add shouldHide param to Blockly.Navigation.resetFlyout.

If there was a selected block on the workspace the cursor goes to that block. Otherwise it goes to a fixed location on the workspace.

Add a test file for navigation, and a basic test.

Stub getMainWorkspace for AST Node tests, and restore it at the end of the tests.

Reason for Changes

We needed a way to exit the flyout/toolbox without inserting a block.

Test Coverage

Added mocha test.

@rachel-fenichel rachel-fenichel merged commit 76f7c45 into google:cursor_ast_update Apr 23, 2019
@rachel-fenichel rachel-fenichel deleted the kb_exit_toolbox branch June 11, 2019 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants