@lvce-editor/renderer-process 30.85.0 → 30.85.1

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.
@@ -13276,6 +13276,27 @@ const createTerminal = async (uid, cursorBlink = false) => {
13276
13276
  rows: defaultRows,
13277
13277
  theme: getTerminalTheme()
13278
13278
  });
13279
+ terminal.attachCustomKeyEventHandler(event => {
13280
+ const {
13281
+ altKey,
13282
+ ctrlKey,
13283
+ key,
13284
+ metaKey,
13285
+ shiftKey,
13286
+ type
13287
+ } = event;
13288
+ if (type !== 'keydown' || !ctrlKey || !shiftKey || altKey || metaKey || key.toLowerCase() !== 'c') {
13289
+ return true;
13290
+ }
13291
+ const selection = terminal.getSelection();
13292
+ if (!selection) {
13293
+ return true;
13294
+ }
13295
+ event.preventDefault();
13296
+ event.stopPropagation();
13297
+ void writeText(selection);
13298
+ return false;
13299
+ });
13279
13300
  const fitAddon = new FitAddon();
13280
13301
  terminal.loadAddon(fitAddon);
13281
13302
  terminal.loadAddon(new WebLinksAddon((event, uri) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/renderer-process",
3
- "version": "30.85.0",
3
+ "version": "30.85.1",
4
4
  "keywords": [
5
5
  "lvce-editor",
6
6
  "renderer-process"