mirror of
https://github.com/usebruno/bruno.git
synced 2026-06-25 21:55:49 +00:00
fix: ensure terminal gains focus upon opening in the console tab (#6951)
This commit is contained in:
@@ -174,6 +174,7 @@ const openTerminalIntoContainer = async (container, sessionId) => {
|
||||
await new Promise((resolve) => setTimeout(resolve, 50));
|
||||
try {
|
||||
fitAddon.fit();
|
||||
terminal.focus();
|
||||
const { cols, rows } = terminal;
|
||||
if (cols && rows && window.ipcRenderer) {
|
||||
window.ipcRenderer.send('terminal:resize', sessionId, { cols, rows });
|
||||
|
||||
Reference in New Issue
Block a user