Skip to content

Commit

Permalink
Support cancellation of editing with ESC key (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
Econa77 authored Jul 26, 2018
1 parent 07af902 commit baa8ad7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Lib/KeyHolder/RecordView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,10 @@ extension NSColor {
}
}

open override func cancelOperation(_ sender: Any?) {
endRecording()
}

override open func keyDown(with theEvent: NSEvent) {
if !performKeyEquivalent(with: theEvent) { super.keyDown(with: theEvent) }
}
Expand Down

0 comments on commit baa8ad7

Please sign in to comment.