diff --git a/bundles/org.eclipse.orion.client.ui/web/edit/setup.js b/bundles/org.eclipse.orion.client.ui/web/edit/setup.js
index <HASH>..<HASH> 100644
--- a/bundles/org.eclipse.orion.client.ui/web/edit/setup.js
+++ b/bundles/org.eclipse.orion.client.ui/web/edit/setup.js
@@ -584,6 +584,15 @@ objects.mixin(TabWidget.prototype, {
 			this.setWindowLocation(href);
 		}.bind(this));
 
+		editorTab.addEventListener("mouseup", function(e) {
+			var button = e.which;
+			if (button === 2) {
+				e.preventDefault();
+				var isDirty = dirtyIndicator.style.display !== "none";
+				this.closeTab(metadata, isDirty);
+			}
+		}.bind(this));
+
 		editorTab.addEventListener("dragstart", function(e) {
 			if (this.fileList.length === 1) {
 				e.preventDefault();
Bug <I> - Middle Click Should Close Tab

Add support for middle button to close editor tab.