Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

i/353: Focus the editor before executing a command #254

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/linkui.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,10 @@ export default class LinkUI extends Plugin {
button.bind( 'isOn' ).to( linkCommand, 'value', value => !!value );

// Show the panel on button click.
this.listenTo( button, 'execute', () => this._showUI( true ) );
this.listenTo( button, 'execute', () => {
this._showUI( true );
editor.editing.view.focus();
} );

return button;
} );
Expand Down