mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	close tab on middle mouse click
This commit is contained in:
		| @@ -818,6 +818,13 @@ RED.tabs = (function() { | ||||
|                 link.on("mouseup",onTabClick); | ||||
|                 link.on("click", function(evt) { evt.preventDefault(); }) | ||||
|                 link.on("dblclick", function(evt) { evt.stopPropagation(); evt.preventDefault(); }) | ||||
|                 // on middle click, close the tab | ||||
|                 link.on("auxclick", function(evt) { | ||||
|                     if (evt.which === 2) { | ||||
|                         evt.preventDefault(); | ||||
|                         removeTab(tab.id); | ||||
|                     } | ||||
|                 }); | ||||
|  | ||||
|                 $('<span class="red-ui-tabs-fade"></span>').appendTo(li); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user