Merge branch 'preview' of https://github.com/continuedev/continue into preview
This commit is contained in:
commit
ae8126f202
1 changed files with 8 additions and 1 deletions
|
|
@ -369,14 +369,21 @@ function TipTapEditor(props: TipTapEditorProps) {
|
|||
};
|
||||
}, []);
|
||||
|
||||
|
||||
|
||||
// IDE event listeners
|
||||
useEffect(() => {
|
||||
if (!props.isMainInput) {
|
||||
return;
|
||||
}
|
||||
if (editor && document.hasFocus()) {
|
||||
|
||||
if (editor) {
|
||||
editor.commands.focus();
|
||||
setTimeout(() => {
|
||||
editor.commands.blur();
|
||||
}, 0);
|
||||
}
|
||||
|
||||
const handler = async (event: any) => {
|
||||
if (!editor) return;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue