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

Maker: Remove "press" event from autocomplete #19153

Merged
merged 1 commit into from Nov 16, 2017

Conversation

islemaster
Copy link
Contributor

Removes the button "press" event from autocomplete (in text mode) and dropdowns (in block mode) for onBoardEvent, because it's simply an alias for "down" in the johnny-five library. This affects dropdowns when the selected component is buttonL or buttonR, or when it's unrecognized (in which case we display all possible event names).

This will not break existing projects - "press" is still a perfectly valid event name to pass through to the underlying library, it just won't be suggested by autocomplete anymore.

Removes the button "press" event from autocomplete (in text mode) and dropdowns (in block mode) for `onBoardEvent`, because it's [simply an alias for "down"][1] in the johnny-five library.  This affects dropdowns when the selected component is buttonL or buttonR, or when it's unrecognized (in which case we display all possible event names).

[1]: https://github.com/code-dot-org/johnny-five/blob/863e922f8170e670088d3dfe6132060293749ba5/lib/button.js#L11-L14
@islemaster islemaster merged commit 3892821 into staging Nov 16, 2017
@islemaster islemaster deleted the maker-remove-button-press-event branch November 16, 2017 22:10
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