 
     func applicationDidFinishLaunching(_ aNotification: Notification) {
         recordView.tintColor = NSColor(red: 0.164, green: 0.517, blue: 0.823, alpha: 1)
-        let keyCombo = KeyCombo(doubledCocoaModifiers: .command)
-        recordView.keyCombo = keyCombo
         recordView.delegate = self
         recordView.clearButtonMode = .whenRecorded
-
-        let hotKey = HotKey(identifier: "KeyHolderExample", keyCombo: keyCombo!, target: self, action: #selector(AppDelegate.hotkeyCalled))
-        hotKey.register()
+        restoreKeyCombo()
     }
 
     func applicationWillTerminate(_ aNotification: Notification) {


    func recordViewDidClearShortcut(_ recordView: RecordView) {
        print("clear shortcut")
        HotKeyCenter.shared.unregisterHotKey(with: "KeyHolderExample")
    }



    func recordView(_ recordView: RecordView, didChangeKeyCombo keyCombo: KeyCombo) {
        HotKeyCenter.shared.unregisterHotKey(with: "KeyHolderExample")
        storeKeyCombo(with: keyCombo)
        let hotKey = HotKey(identifier: "KeyHolderExample", keyCombo: keyCombo, target: self, action: #selector(AppDelegate.hotkeyCalled))
        hotKey.register()
    }
