-
Notifications
You must be signed in to change notification settings - Fork 63
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
Updated focus behavior for heading and code. #404
Updated focus behavior for heading and code. #404
Conversation
…into ghw/380-heading-code-focus-not-moving
src/app/plugins/headingdropdown.js
Outdated
@@ -84,6 +86,14 @@ export default class HeadingDropdown extends Plugin { | |||
] ); | |||
dropdown.toolbarView.fillFromConfig( toolbarConfig.items, editor.ui.componentFactory ); | |||
|
|||
dropdown.on( 'change:isOpen', ( evt, name, isOpen ) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I miss a reference comment to the origin issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But why do you focus the editable upon closing heading dropdown? This behavior would be inconsistent with other features (and a little disruptive quite frankly).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I addressed my previous review points to keep it going.
Focus and selection will now remain on the text when the Heading or Code buttons are pressed. Closes #380.