-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Only take keypresses when visible #1674
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with minor change and fixed lint errors.
core/workspace_svg.js
Outdated
| * @type {boolean} | ||
| * @package | ||
| */ | ||
| Blockly.WorkspaceSvg.prototype.isVisible = true; |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
core/blockly.js
Outdated
| * @param {!Event} e Key down event. | ||
| * @private | ||
| */ | ||
| // TODO handle cases where there are multiple workspaces and non-main workspaces are able to accept |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
Resolves
Fixes #1019
Proposed Changes
This change mirrors
RaspberryPiFoundation/blockly#1996
from Blockly
Reason for Changes
Keyboard shortcuts can't be implemented in other tabs as long as the blocks tab is responding to them
Test Coverage
Tested in integration with GUI by using ctrl Z, C, and V while in other tabs