mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Merge pull request #4382 from hazymat/master
Ctrl-Enter does not close tray (Monaco) #4377
This commit is contained in:
commit
245751bb23
@ -966,12 +966,10 @@ RED.editor.codeEditor.monaco = (function() {
|
|||||||
|
|
||||||
//Unbind ctrl-Enter (default action is to insert a newline in editor) This permits the shortcut to close the tray.
|
//Unbind ctrl-Enter (default action is to insert a newline in editor) This permits the shortcut to close the tray.
|
||||||
try {
|
try {
|
||||||
ed._standaloneKeybindingService.addDynamicKeybinding(
|
monaco.editor.addKeybindingRule({keybinding: 0, command: "-editor.action.insertLineAfter"});
|
||||||
'-editor.action.insertLineAfter', // command ID prefixed by '-'
|
} catch (error) {
|
||||||
null, // keybinding
|
console.warn(error)
|
||||||
() => {} // need to pass an empty handler
|
}
|
||||||
);
|
|
||||||
} catch (error) { }
|
|
||||||
|
|
||||||
ed.nodered = {
|
ed.nodered = {
|
||||||
refreshModuleLibs: refreshModuleLibs //expose this for function node externalModules refresh
|
refreshModuleLibs: refreshModuleLibs //expose this for function node externalModules refresh
|
||||||
|
Loading…
x
Reference in New Issue
Block a user