correctly focusing tabs

This commit is contained in:
SPRINX0\prochazka
2024-11-21 16:53:46 +01:00
parent b9f9501e67
commit 669d0b9dac
9 changed files with 19 additions and 19 deletions

View File

@@ -124,7 +124,7 @@
},
];
const tabVisible: any = getContext('tabVisible');
const tabFocused: any = getContext('tabFocused');
const timerLabel = useTimerLabel();
let busy = false;
@@ -181,7 +181,7 @@
invalidateCommands();
}
$: if ($tabVisible && domEditor) {
$: if ($tabFocused && domEditor) {
domEditor?.getEditor()?.focus();
}