mirror of
https://github.com/wavetermdev/waveterm.git
synced 2024-12-21 16:38:23 +01:00
add a refocus at the end of wave reinit (#1499)
This commit is contained in:
parent
4918737044
commit
f4de338bc3
@ -142,6 +142,10 @@ function switchTab(offset: number) {
|
||||
}
|
||||
|
||||
function handleCmdI() {
|
||||
globalRefocus();
|
||||
}
|
||||
|
||||
function globalRefocus() {
|
||||
const layoutModel = getLayoutModelForStaticTab();
|
||||
const focusedNode = globalStore.get(layoutModel.focusedNode);
|
||||
if (focusedNode == null) {
|
||||
@ -345,6 +349,7 @@ export {
|
||||
appHandleKeyDown,
|
||||
getAllGlobalKeyBindings,
|
||||
getSimpleControlShiftAtom,
|
||||
globalRefocus,
|
||||
registerControlShiftStateUpdateHandler,
|
||||
registerElectronReinjectKeyHandler,
|
||||
registerGlobalKeys,
|
||||
|
@ -3,6 +3,7 @@
|
||||
|
||||
import { App } from "@/app/app";
|
||||
import {
|
||||
globalRefocus,
|
||||
registerControlShiftStateUpdateHandler,
|
||||
registerElectronReinjectKeyHandler,
|
||||
registerGlobalKeys,
|
||||
@ -106,6 +107,9 @@ async function reinitWave() {
|
||||
getApi().setWindowInitStatus("wave-ready");
|
||||
globalStore.set(atoms.reinitVersion, globalStore.get(atoms.reinitVersion) + 1);
|
||||
globalStore.set(atoms.updaterStatusAtom, getApi().getUpdaterStatus());
|
||||
setTimeout(() => {
|
||||
globalRefocus();
|
||||
}, 50);
|
||||
}
|
||||
|
||||
function reloadAllWorkspaceTabs(ws: Workspace) {
|
||||
|
Loading…
Reference in New Issue
Block a user