Skip to content

Commit

Permalink
Enable allowProposedApi in XTerminal to fix Linux log search (#2558)
Browse files Browse the repository at this point in the history
Signed-off-by: Veysel Sahin <[email protected]>
  • Loading branch information
veyselsahin committed Nov 13, 2024
1 parent 60f43fc commit a4d89b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 2 additions & 4 deletions frontend/src/components/common/LogViewer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ export function LogViewer(props: LogViewerProps) {
scrollback: 10000,
rows: 30, // initial rows before fit
lineHeight: 1.21,
allowProposedApi: 'true',
});

if (!!outXtermRef) {
Expand Down Expand Up @@ -228,10 +229,7 @@ function enableCopyPasteInXterm(xterm: XTerminal) {
return false;
}
}
if (arg.ctrlKey && arg.code === 'KeyV' && arg.type === 'keydown') {
return false;
}
return true;
return !(arg.ctrlKey && arg.code === 'KeyV' && arg.type === 'keydown');
});
}

Expand Down
1 change: 1 addition & 0 deletions frontend/src/components/common/Terminal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ export default function Terminal(props: TerminalProps) {
scrollback: 10000,
rows: 30, // initial rows before fit
windowsMode: isWindows,
allowProposedApi: 'true',
}),
connected: false,
reconnectOnEnter: false,
Expand Down

0 comments on commit a4d89b8

Please sign in to comment.