@xcanwin/manyoyo 6.2.4 → 6.2.5
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.
- package/lib/web/frontend/app.js +16 -5
- package/package.json +1 -1
package/lib/web/frontend/app.js
CHANGED
|
@@ -1414,6 +1414,9 @@
|
|
|
1414
1414
|
state.agentTemplateModalOpen = true;
|
|
1415
1415
|
fillAgentTemplateForm(detail);
|
|
1416
1416
|
syncUi();
|
|
1417
|
+
if (isMobileLayout()) {
|
|
1418
|
+
return;
|
|
1419
|
+
}
|
|
1417
1420
|
if (isActiveAgentOverrideEditable() && agentCliSelect) {
|
|
1418
1421
|
agentCliSelect.focus();
|
|
1419
1422
|
} else if (containerCliSelect) {
|
|
@@ -1861,7 +1864,9 @@
|
|
|
1861
1864
|
state.terminal.connected = true;
|
|
1862
1865
|
state.terminal.status = '已连接';
|
|
1863
1866
|
if (state.terminal.term) {
|
|
1864
|
-
|
|
1867
|
+
if (!isMobileLayout()) {
|
|
1868
|
+
state.terminal.term.focus();
|
|
1869
|
+
}
|
|
1865
1870
|
scheduleTerminalFit(true);
|
|
1866
1871
|
}
|
|
1867
1872
|
syncUi();
|
|
@@ -1999,7 +2004,7 @@
|
|
|
1999
2004
|
if (!state.terminal.connected && !state.terminal.connecting && !isActiveSessionHistoryOnly()) {
|
|
2000
2005
|
connectTerminal();
|
|
2001
2006
|
}
|
|
2002
|
-
if (state.terminal.term) {
|
|
2007
|
+
if (state.terminal.term && !isMobileLayout()) {
|
|
2003
2008
|
state.terminal.term.focus();
|
|
2004
2009
|
}
|
|
2005
2010
|
}
|
|
@@ -4506,7 +4511,9 @@
|
|
|
4506
4511
|
renderMessages(state.messages, { forceFullRender: true });
|
|
4507
4512
|
closeComposerOptionsMenu();
|
|
4508
4513
|
syncUi();
|
|
4509
|
-
|
|
4514
|
+
if (!isMobileLayout()) {
|
|
4515
|
+
commandInput.focus();
|
|
4516
|
+
}
|
|
4510
4517
|
});
|
|
4511
4518
|
}
|
|
4512
4519
|
|
|
@@ -4516,7 +4523,9 @@
|
|
|
4516
4523
|
renderMessages(state.messages, { forceFullRender: true });
|
|
4517
4524
|
closeComposerOptionsMenu();
|
|
4518
4525
|
syncUi();
|
|
4519
|
-
|
|
4526
|
+
if (!isMobileLayout()) {
|
|
4527
|
+
commandInput.focus();
|
|
4528
|
+
}
|
|
4520
4529
|
});
|
|
4521
4530
|
}
|
|
4522
4531
|
|
|
@@ -4530,7 +4539,9 @@
|
|
|
4530
4539
|
viewActivityBtn.addEventListener('click', function () {
|
|
4531
4540
|
closeWorkspaceSwitcherMenu();
|
|
4532
4541
|
setActiveTab('activity');
|
|
4533
|
-
|
|
4542
|
+
if (!isMobileLayout()) {
|
|
4543
|
+
commandInput.focus();
|
|
4544
|
+
}
|
|
4534
4545
|
});
|
|
4535
4546
|
}
|
|
4536
4547
|
|