@lvce-editor/main-area-worker 9.68.1 → 9.68.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2906,6 +2906,15 @@ const focus = async state => {
|
|
|
2906
2906
|
if (typeof editorUid !== 'number' || editorUid < 0) {
|
|
2907
2907
|
return state;
|
|
2908
2908
|
}
|
|
2909
|
+
if (activeTab?.tab.uri?.startsWith('search-editor://')) {
|
|
2910
|
+
if (isConnected()) {
|
|
2911
|
+
await invoke$1(state.applicationId, 'Layout.renderMainAreaPending', state.uid);
|
|
2912
|
+
await invoke('Viewlet.focus', editorUid);
|
|
2913
|
+
} else {
|
|
2914
|
+
await invoke$2('Viewlet.focus', editorUid);
|
|
2915
|
+
}
|
|
2916
|
+
return state;
|
|
2917
|
+
}
|
|
2909
2918
|
const selector = activeTab?.tab.terminal ? '.xterm-helper-textarea' : '[name="editor"]';
|
|
2910
2919
|
if (isConnected()) {
|
|
2911
2920
|
await invoke$1(state.applicationId, 'Layout.renderMainAreaPending', state.uid);
|