|
|
|
@ -69,11 +69,11 @@ export class CommandPanel extends React.Component<{}, CommandPanelState>
|
|
|
|
|
|
|
|
|
|
const Focus = async () =>
|
|
|
|
|
{
|
|
|
|
|
for (let i = 0; i < 2; i++)
|
|
|
|
|
for (let i = 0; i < 6; i++)
|
|
|
|
|
{
|
|
|
|
|
if (this.inputEl)
|
|
|
|
|
this.inputEl.focus();
|
|
|
|
|
await Sleep(300);
|
|
|
|
|
await Sleep(100);
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
Focus();
|
|
|
|
@ -214,8 +214,9 @@ export class CommandPanel extends React.Component<{}, CommandPanelState>
|
|
|
|
|
if (lastVisId)
|
|
|
|
|
{
|
|
|
|
|
this.id = lastVisId;
|
|
|
|
|
if (document.activeElement instanceof HTMLElement && document.activeElement.getAttribute("data-tab-id") !== lastVisId)
|
|
|
|
|
document.activeElement.blur();
|
|
|
|
|
let activeId = document.activeElement.getAttribute("data-tab-id");
|
|
|
|
|
if (activeId && document.activeElement instanceof HTMLElement && activeId !== lastVisId)
|
|
|
|
|
this.inputEl.focus();
|
|
|
|
|
}
|
|
|
|
|
await cserver.SetLastScrollTop(this.scrollCard.scrollTop);
|
|
|
|
|
}}
|
|
|
|
|