Skip to content

Instantly share code, notes, and snippets.

@michaelvillar
Created September 17, 2010 16:01

Revisions

  1. michaelvillar created this gist Sep 17, 2010.
    13 changes: 13 additions & 0 deletions gistfile1.j
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    diff --git a/AppKit/Platform/DOM/CPPlatformWindow+DOM.j b/AppKit/Platform/DOM/CPPlatformWindow+DOM.j
    index 3b560a5..8924510 100644
    --- a/AppKit/Platform/DOM/CPPlatformWindow+DOM.j
    +++ b/AppKit/Platform/DOM/CPPlatformWindow+DOM.j
    @@ -1213,7 +1213,7 @@ var supportsNativeDragAndDrop = [CPPlatform supportsDragAndDrop];
    else if (type === "mousedown")
    {
    var button = aDOMEvent.button;
    - _mouseDownIsRightClick = button == 2 || (button == 0 && modifierFlags & CPControlKeyMask);
    + _mouseDownIsRightClick = button == 2 || (CPBrowserIsOperatingSystem(CPMacOperatingSystem) && button == 0 && modifierFlags & CPControlKeyMask);

    if (sourceElement.tagName === "INPUT" && sourceElement != _DOMFocusElement)
    {