From 3a3933dfe90a5bcff65df5194f54497db0d923e4 Mon Sep 17 00:00:00 2001 From: James Allen Date: Mon, 28 Jul 2014 16:23:46 +0100 Subject: [PATCH] Don't immediately close context menu in Firefox --- .../directives/aceEditor/spell-check/SpellCheckManager.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 99c3da3662..adaedd458f 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 @@ -29,7 +29,8 @@ define [ @openContextMenu(e.domEvent) $(document).on "click", (e) => - @closeContextMenu(e) + if e.which != 3 # Ignore if this was a right click + @closeContextMenu(e) return true @$scope.replaceWord = (highlight, suggestion) =>