Skip to content

Commit 9e958df

Browse files
author
Loïc Mangeonjean
committed
fix: always resolve keyboard event using workbench service
1 parent 5ec88a3 commit 9e958df

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/monaco.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,10 @@ import { ITelemetryService } from 'vs/platform/telemetry/common/telemetry'
3939
import { INotificationService } from 'vs/platform/notification/common/notification'
4040
import { ILogService } from 'vs/platform/log/common/log'
4141
import { ICodeEditorService } from 'vs/editor/browser/services/codeEditorService'
42-
import { IKeybindingService } from 'vs/platform/keybinding/common/keybinding'
42+
import { IKeybindingService, IKeyboardEvent } from 'vs/platform/keybinding/common/keybinding'
4343
import { KeybindingResolver } from 'vs/platform/keybinding/common/keybindingResolver'
4444
import { ResolvedKeybindingItem } from 'vs/platform/keybinding/common/resolvedKeybindingItem'
45+
import { ResolvedKeybinding } from 'vs/base/common/keybindings'
4546
import { createInjectedClass } from './tools/injection'
4647
// Selectively comes from vs/workbench/contrib/codeEditor/browser/codeEditor.contribution.ts
4748
import 'vs/workbench/contrib/codeEditor/browser/workbenchReferenceSearch'
@@ -210,6 +211,10 @@ class DelegateStandaloneKeybindingService extends StandaloneKeybindingService {
210211
protected override _getResolver (): KeybindingResolver {
211212
return this.delegate._getResolver()
212213
}
214+
215+
override resolveKeyboardEvent (keyboardEvent: IKeyboardEvent): ResolvedKeybinding {
216+
return this.delegate.resolveKeyboardEvent(keyboardEvent)
217+
}
213218
}
214219

215220
let standaloneEditorInstantiationService: IInstantiationService | null = null

0 commit comments

Comments
 (0)