Skip to content

Instantly share code, notes, and snippets.

@soffes
Created December 7, 2014 14:21
Show Gist options
  • Select an option

  • Save soffes/b2de7ca592d59cb90dcb to your computer and use it in GitHub Desktop.

Select an option

Save soffes/b2de7ca592d59cb90dcb to your computer and use it in GitHub Desktop.
//
// 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