From 9f26214142ba92142efe56f696e84c71b2f2d5a6 Mon Sep 17 00:00:00 2001 From: James Allen Date: Mon, 28 Jul 2014 17:11:15 +0100 Subject: [PATCH] Fix double context menu in FF --- .../directives/aceEditor/spell-check/SpellCheckManager.coffee | 2 ++ 1 file changed, 2 insertions(+) diff --git a/services/web/public/coffee/ide/editor/directives/aceEditor/spell-check/SpellCheckManager.coffee b/services/web/public/coffee/ide/editor/directives/aceEditor/spell-check/SpellCheckManager.coffee index adaedd458f..5782f74ba7 100644 --- a/services/web/public/coffee/ide/editor/directives/aceEditor/spell-check/SpellCheckManager.coffee +++ b/services/web/public/coffee/ide/editor/directives/aceEditor/spell-check/SpellCheckManager.coffee @@ -25,6 +25,7 @@ define [ @$scope.spellingMenu = {left: '0px', top: '0px'} @editor.on "nativecontextmenu", (e) => + e.domEvent.stopPropagation(); @closeContextMenu(e.domEvent) @openContextMenu(e.domEvent) @@ -74,6 +75,7 @@ define [ @$scope.spellingMenu.open = true @$scope.spellingMenu.left = e.clientX + 'px' @$scope.spellingMenu.top = e.clientY + 'px' + return false closeContextMenu: (e) -> @$scope.$apply () =>