Fix double context menu in FF

This commit is contained in:
James Allen 2014-07-28 17:11:15 +01:00
parent 9db2fc93a4
commit 9f26214142

View file

@ -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 () =>