mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	| @@ -921,6 +921,15 @@ RED.editor.codeEditor.monaco = (function() { | ||||
|         /*********** Create the monaco editor ***************/ | ||||
|         var ed = monaco.editor.create(el, editorOptions); | ||||
|  | ||||
|         //Unbind ctrl-Enter (default action is to insert a newline in editor) This permits the shortcut to close the tray. | ||||
|         try { | ||||
|             ed._standaloneKeybindingService.addDynamicKeybinding( | ||||
|                 '-editor.action.insertLineAfter', // command ID prefixed by '-' | ||||
|                 null, // keybinding | ||||
|                 () => {} // need to pass an empty handler | ||||
|             ); | ||||
|         } catch (error) { } | ||||
|  | ||||
|         ed.nodered = { | ||||
|             refreshModuleLibs: refreshModuleLibs //expose this for function node externalModules refresh | ||||
|         } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user