mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Add new shortcut to clear debug message list
Clearing the debug message list is globally scoped by default to `ctrl+alt+l`. Mnemonic: similar to clearing a terminal shell using ctrl+l.
This commit is contained in:
		| @@ -17,6 +17,7 @@ | ||||
|         "ctrl-space": "core:toggle-sidebar", | ||||
|         "ctrl-p": "core:toggle-palette", | ||||
|         "ctrl-,": "core:show-user-settings", | ||||
|         "ctrl-alt-l": "core:clear-debug-messages", | ||||
|         "ctrl-alt-r": "core:show-remote-diff", | ||||
|         "ctrl-alt-n": "core:new-project", | ||||
|         "ctrl-alt-o": "core:open-project", | ||||
|   | ||||
| @@ -205,6 +205,7 @@ | ||||
|                 } | ||||
|             }; | ||||
|             RED.events.on("project:change", this.clearMessageList); | ||||
|             RED.actions.add("core:clear-debug-messages", function() { RED.debug.clearMessageList(true) }); | ||||
|  | ||||
|             $("#debug-tab-open").click(function(e) { | ||||
|                 e.preventDefault(); | ||||
| @@ -246,7 +247,8 @@ | ||||
|             RED.sidebar.removeTab("debug"); | ||||
|             RED.events.off("workspace:change", this.refreshMessageList); | ||||
|             window.removeEventListener("message",this.handleWindowMessage); | ||||
|             RED.actions.remove("core:show-debug"); | ||||
|             RED.actions.remove("core:show-debug-tab"); | ||||
|             RED.actions.remove("core:clear-debug-messages"); | ||||
|  | ||||
|             delete RED._debug; | ||||
|         }, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user