fix: crash when user click a specific spot of shortcut ui (closes #495)

This commit is contained in:
Louis Pontoise authored and lwouis committed 2020-08-31 14:41:16 +09:00
1 parent c927920070
commit 959a8aea55
1 file changed
+6
@@ -23,6 +23,12 @@ class CustomRecorderControl: RecorderControl, RecorderControlDelegate {
}
}
override func clearAndEndRecording() {
if clearable {
super.clearAndEndRecording()
}
}
// only allow modifiers: ⌥ -> valid, e -> invalid, ⌥e -> invalid
func recorderControl(_ aControl: RecorderControl, canRecord aShortcut: Shortcut) -> Bool {
if !clearable && aShortcut.keyCode != .none {