CutBox.app

Coverage Report

Created: 2024-03-12 03:40

.../Source/Components/Popup/PopupPanel.swift
Line
Count
Source
1
//
2
//  PopupPanel.swift
3
//  CutBox
4
//
5
//  Created by Jason Milkins on 24/3/18.
6
//  Copyright © 2018-2023 ocodo. All rights reserved.
7
//
8
9
import Cocoa
10
11
public class PopupPanel: NSPanel {}
12
13
extension PopupPanel {
14
15
3
    public override var canBecomeKey: Bool {
16
3
        return true
17
3
    }
18
}
19
20
extension PopupPanel {
21
22
1
    public override func cancelOperation(_ sender: Any?) {
23
1
        resignKey()
24
1
    }
25
}