feat: make FlyoutButton.callbackKey public by maribethb · Pull Request #9381 · RaspberryPiFoundation/blockly
The basics
The details
Resolves
Needed for RaspberryPiFoundation/blockly-keyboard-experimentation#727
Proposed Changes
- Makes
callbackKeypublic - Reformats the code where it's set to be less weird
- Updates the comments with better reasoning for why we look for both properties in the json
Reason for Changes
The comment implies that we only check the lowercase version because of IE11, but that can't be correct, because the ButtonInfo type definition uses the lowercase version, despite our docs saying to use the camelcase version. We have supported both for a long time and should continue supporting both.