File tree 1 file changed +9
-1
lines changed
arduino-ide-extension/src/browser/contributions
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 1
- import { MenuModelRegistry } from '@theia/core' ;
1
+ import { MenuModelRegistry } from '@theia/core/lib/common/menu' ;
2
+ import { KeybindingRegistry } from '@theia/core/lib/browser/keybinding' ;
2
3
import { CompositeTreeNode } from '@theia/core/lib/browser/tree' ;
3
4
import { DisposableCollection } from '@theia/core/lib/common/disposable' ;
4
5
import { nls } from '@theia/core/lib/common/nls' ;
@@ -80,6 +81,13 @@ export class NewCloudSketch extends Contribution {
80
81
} ) ;
81
82
}
82
83
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
+
83
91
private async createNewSketch (
84
92
initialValue ?: string | undefined
85
93
) : Promise < URI | undefined > {
You can’t perform that action at this time.
0 commit comments