Przeglądaj źródła

Don't immediately close context menu in Firefox

James Allen 12 lat temu
rodzic
commit
3a3933dfe9

+ 2 - 1
services/web/public/coffee/ide/editor/directives/aceEditor/spell-check/SpellCheckManager.coffee

@@ -29,7 +29,8 @@ define [
 				@openContextMenu(e.domEvent)
 				@openContextMenu(e.domEvent)
 
 
 			$(document).on "click", (e) =>
 			$(document).on "click", (e) =>
-				@closeContextMenu(e)
+				if e.which != 3 # Ignore if this was a right click
+					@closeContextMenu(e)
 				return true
 				return true
 
 
 			@$scope.replaceWord = (highlight, suggestion) =>
 			@$scope.replaceWord = (highlight, suggestion) =>