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: make meta+A behaviour of selecting all blocks work on safari and firefox #8180

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 3 additions & 2 deletions packages/editor/src/components/writing-flow/index.js
Expand Up @@ -254,8 +254,9 @@ class WritingFlow extends Component {
event.preventDefault();
}

// Set in case the meta key doesn't get released.
this.isEntirelySelected = isEntirelySelected( target );
// After pressing primary + A we can assume isEntirelySelected is true.
// Calling right away isEntirelySelected after primary + A may still return false on some browsers.
this.isEntirelySelected = true;
}

return;
Expand Down