Skip to content

Commit 27fc886

Browse files
author
Akos Kitta
committed
added keybinding
Signed-off-by: Akos Kitta <[email protected]>
1 parent 0d736fe commit 27fc886

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Diff for: arduino-ide-extension/src/browser/contributions/new-cloud-sketch.ts

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { MenuModelRegistry } from '@theia/core';
1+
import { MenuModelRegistry } from '@theia/core/lib/common/menu';
2+
import { KeybindingRegistry } from '@theia/core/lib/browser/keybinding';
23
import { CompositeTreeNode } from '@theia/core/lib/browser/tree';
34
import { DisposableCollection } from '@theia/core/lib/common/disposable';
45
import { nls } from '@theia/core/lib/common/nls';
@@ -80,6 +81,13 @@ export class NewCloudSketch extends Contribution {
8081
});
8182
}
8283

84+
override registerKeybindings(registry: KeybindingRegistry): void {
85+
registry.registerKeybinding({
86+
command: NewCloudSketch.Commands.NEW_CLOUD_SKETCH.id,
87+
keybinding: 'CtrlCmd+Alt+N',
88+
});
89+
}
90+
8391
private async createNewSketch(
8492
initialValue?: string | undefined
8593
): Promise<URI | undefined> {

0 commit comments

Comments
 (0)