Skip to content

Commit d739be1

Browse files
committed
Probably fix Windows keybindings
1 parent db4a71a commit d739be1

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

scripts/vscode.patch

+10
Original file line numberDiff line numberDiff line change
@@ -916,6 +916,16 @@ index 5f2935618c..af5498d7ac 100644
916916
@@ -132 +132 @@ function connectToRenderer(protocol: IMessagePassingProtocol): Promise<IRenderer
917917
- process.kill(initData.parentPid, 0); // throws an exception if the main process doesn't exist anymore.
918918
+ // process.kill(initData.parentPid, 0); // throws an exception if the main process doesn't exist anymore.
919+
diff --git a/src/vs/workbench/services/keybinding/electron-browser/keybindingService.ts b/src/vs/workbench/services/keybinding/electron-browser/keybindingService.ts
920+
index 817b087ec8..a134b680b5 100644
921+
--- a/src/vs/workbench/services/keybinding/electron-browser/keybindingService.ts
922+
+++ b/src/vs/workbench/services/keybinding/electron-browser/keybindingService.ts
923+
@@ -16 +16 @@ import { KeybindingParser } from 'vs/base/common/keybindingParser';
924+
-import { OS, OperatingSystem } from 'vs/base/common/platform';
925+
+import { OS, OperatingSystem, isNative } from 'vs/base/common/platform';
926+
@@ -128 +128 @@ export class KeyboardMapperFactory {
927+
- if (OS === OperatingSystem.Windows) {
928+
+ if (isNative && OS === OperatingSystem.Windows) {
919929
diff --git a/src/vs/workbench/workbench.main.ts b/src/vs/workbench/workbench.main.ts
920930
index 1ad274696d..f52d1e0d2e 100644
921931
--- a/src/vs/workbench/workbench.main.ts

0 commit comments

Comments
 (0)