fix #84080 added cntl-shift-c and cntl-shift-v to terminal#84438
fix #84080 added cntl-shift-c and cntl-shift-v to terminal#84438Tyriar merged 4 commits intomicrosoft:masterfrom
Conversation
src/vs/workbench/contrib/terminal/browser/terminal.contribution.ts
Outdated
Show resolved
Hide resolved
|
Will look into this! Thanks for the feedback! |
|
Hi @Tyriar - not sure if I'm doing something wrong. But I assume this is what I'm trying to add. When I load "yarn watch" The loaded visual studio code doesn't seem to reflect any of my changes...is this because I'm using a windows machine and running through command prompt as per "Building and debugging via the Windows subsystem for Linux (WSL) is currently not supported." Sorry to bug you! Thanks for all your help! |
|
@Grommers00 the problem is probably because there is no longer a primary one, try removing |
| if (BrowserFeatures.clipboard.writeText) { | ||
| actionRegistry.registerWorkbenchAction(new SyncActionDescriptor(CopyTerminalSelectionAction, CopyTerminalSelectionAction.ID, CopyTerminalSelectionAction.LABEL, { | ||
| primary: KeyMod.CtrlCmd | KeyCode.KEY_C, | ||
| win: { primary: KeyCode.Ctrl | KeyCode.KEY_C, secondary: [KeyCode.Ctrl | KeyCode.Shift | KeyCode.KEY_C] }, |
There was a problem hiding this comment.
Would this work?
primary: KeyCode.CtrlCmd | KeyCode.Shift | KeyCode.KEY_C,
win: { secondary: KeyCode.Ctrl | KeyCode.KEY_C },
mac: { secondary: KeyCode.Cmd | KeyCode.KEY_C }
There was a problem hiding this comment.
Yes, I think that should work as well.
There was a problem hiding this comment.
I'm not sure that works but if it did we wouldn't want cmd+shift+c to be bound on mac. I think they all need a primary.
This PR fixes #84080