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

Fix keyboard shortcuts regression introduced in v1.2.0 #189

Merged
merged 2 commits into from
Mar 6, 2019

Conversation

thibaudcolas
Copy link
Collaborator

v1.2.0 changed what commands were created from default keyboard shortcuts defined within Draft.js. Unfortunately this part of the code wasn't overridden properly, and resulted in the commands being executed and styles activated when they shouldn't have been available.

This fixes the issue by always checking whether the command is enabled before applying it, and discarding commands that are not enabled.

@thibaudcolas thibaudcolas added the bug Something isn't working label Mar 6, 2019
@thibaudcolas thibaudcolas added this to the Nice to have milestone Mar 6, 2019
@thibaudcolas thibaudcolas force-pushed the bug/keyboard-shortcuts-regression branch from 124aff0 to e51daf4 Compare March 6, 2019 23:50
@thi-bot
Copy link
Collaborator

thi-bot commented Mar 6, 2019

Warnings
⚠️

This pull request updates the library. Should the documentation be updated as well?

Generated by 🚫 dangerJS

@thibaudcolas thibaudcolas merged commit b37c8e5 into master Mar 6, 2019
@thibaudcolas thibaudcolas deleted the bug/keyboard-shortcuts-regression branch March 6, 2019 23:59
@thibaudcolas thibaudcolas mentioned this pull request Mar 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants