@evergis/react 4.0.9 → 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/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 () => {