Created
December 7, 2014 14:21
-
-
Save soffes/b2de7ca592d59cb90dcb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // CommandClickGestureRecognizer.swift | |
| // Whiskey | |
| // | |
| // Created by Sam Soffes on 12/7/14. | |
| // Copyright (c) 2014 Nothing Magical Inc. All rights reserved. | |
| // | |
| import Cocoa | |
| class CommandClickGestureRecognizer: NSClickGestureRecognizer { | |
| override func mouseDown(event: NSEvent) { | |
| if event.modifierFlags & .CommandKeyMask != nil { | |
| super.mouseDown(event) | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment