mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-18 09:35:20 +02:00
9 lines
300 B
TypeScript
9 lines
300 B
TypeScript
|
import CommandService from '../CommandService';
|
||
|
import isEditorCommand from './isEditorCommand';
|
||
|
|
||
|
export default async function focusEditorIfEditorCommand(commandName: string, commandService: CommandService) {
|
||
|
if (isEditorCommand(commandName)) {
|
||
|
await commandService.execute('editor.focus');
|
||
|
}
|
||
|
}
|