|
@@ -20,6 +20,10 @@ import AppKit
|
|
|
|
|
|
@objc optional func componentSelectTextDidEndEditing(_ view: ComponentSelect, removeUnit text: String?)
|
|
|
|
|
|
+
|
|
|
+ @objc optional func componentSelectDidMouseDown(_ view: ComponentSelect, with event: NSEvent)
|
|
|
+
|
|
|
+ @objc optional func componentSelectDidMouseUp(_ view: ComponentSelect, with event: NSEvent)
|
|
|
}
|
|
|
|
|
|
public class ComponentSelect: ComponentBaseXibView {
|
|
@@ -451,6 +455,7 @@ public class ComponentSelect: ComponentBaseXibView {
|
|
|
if properties.creatable == true {
|
|
|
super.mouseDown(with: event)
|
|
|
}
|
|
|
+ delegate?.componentSelectDidMouseDown?(self, with: event)
|
|
|
}
|
|
|
|
|
|
public override func mouseUp(with event: NSEvent) {
|
|
@@ -492,6 +497,8 @@ public class ComponentSelect: ComponentBaseXibView {
|
|
|
properties.state = .normal
|
|
|
}
|
|
|
refreshUI()
|
|
|
+
|
|
|
+ delegate?.componentSelectDidMouseUp?(self, with: event)
|
|
|
}
|
|
|
}
|
|
|
|