         }
 
         let locationInView = convert(theEvent.locationInWindow, from: nil)
-        if mouse(locationInView, in: bounds) && !recording {
+        if mouse(locationInView, in: bounds) && !isRecording {
             _ = beginRecording()
         } else {
             super.mouseDown(with: theEvent)


    open weak var delegate: RecordViewDelegate?
    open var didChange: ((KeyCombo?) -> Void)?
    open var recording = false
    open var keyCombo: KeyCombo? {
        didSet { needsDisplay = true }
    }

                }
            }
            return false
        } else if isRecording && KeyTransformer.containsFunctionKey(keyCodeInt) {
            if let keyCombo = KeyCombo(keyCode: keyCodeInt, carbonModifiers: 0) {
                if delegate?.recordView(self, canRecordKeyCombo: keyCombo) ?? true {
                    self.keyCombo = keyCombo
