@evergis/react 4.0.10 → 4.0.11
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/dist/index.js +13 -0
- package/dist/index.js.map +1 -1
- package/dist/react.esm.js +13 -0
- package/dist/react.esm.js.map +1 -1
- package/package.json +2 -3
package/dist/react.esm.js
CHANGED
|
@@ -11649,6 +11649,8 @@ const LogTerminal = ({ log, terminalOptions, className, styles }) => {
|
|
|
11649
11649
|
background: theme.palette.background,
|
|
11650
11650
|
foreground: theme.palette.textPrimary,
|
|
11651
11651
|
cursor: theme.palette.primary,
|
|
11652
|
+
selectionBackground: theme.palette.primary,
|
|
11653
|
+
selectionForeground: theme.palette.textPrimary,
|
|
11652
11654
|
},
|
|
11653
11655
|
...terminalOptions,
|
|
11654
11656
|
});
|
|
@@ -11665,6 +11667,17 @@ const LogTerminal = ({ log, terminalOptions, className, styles }) => {
|
|
|
11665
11667
|
const handleResize = () => {
|
|
11666
11668
|
fitAddon.fit();
|
|
11667
11669
|
};
|
|
11670
|
+
// Add Ctrl+C support for xterm
|
|
11671
|
+
terminal.attachCustomKeyEventHandler(arg => {
|
|
11672
|
+
if (arg.ctrlKey && arg.code === "KeyC" && arg.type === "keydown") {
|
|
11673
|
+
const selection = terminal.getSelection();
|
|
11674
|
+
if (selection) {
|
|
11675
|
+
navigator.clipboard.writeText(selection);
|
|
11676
|
+
return false;
|
|
11677
|
+
}
|
|
11678
|
+
}
|
|
11679
|
+
return true;
|
|
11680
|
+
});
|
|
11668
11681
|
window.addEventListener("resize", handleResize);
|
|
11669
11682
|
// Cleanup
|
|
11670
11683
|
return () => {
|