Skip to content

Adds keyboard and onClick logic#4083

Merged
alschmiedt merged 2 commits intoRaspberryPiFoundation:toolboxfrom
alschmiedt:init_toolbox
Aug 4, 2020
Merged

Adds keyboard and onClick logic#4083
alschmiedt merged 2 commits intoRaspberryPiFoundation:toolboxfrom
alschmiedt:init_toolbox

Conversation

@alschmiedt
Copy link
Copy Markdown
Contributor

The basics

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

The details

Resolves

Handles keyboard events and clicking on the toolbox and toolbox items.

Proposed Changes

Reason for Changes

Test Coverage

Tested on:

Documentation

Additional Information

* @param {!Event} e Click event to handle.
* @protected
*/
Blockly.Toolbox.prototype.onClick_ = function(e) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do protected functions normally end in underscores too? I'm genuinely asking because I haven't used protected very often. The style guide only mentions it being required for private, but afaict it doesn't say you can't for other visibilities so I'm not sure.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In Blockly yes, but I am not entirely sure what the norm for this is or what the story is behind why blockly does this.

@alschmiedt alschmiedt merged commit 744ca0e into RaspberryPiFoundation:toolbox Aug 4, 2020
alschmiedt added a commit to alschmiedt/blockly that referenced this pull request Aug 7, 2020
@alschmiedt alschmiedt deleted the init_toolbox branch August 12, 2020 16:27
alschmiedt added a commit to alschmiedt/blockly that referenced this pull request Aug 24, 2020
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.

2 participants