Open onmyway133 opened 10 months ago
NSTextField uses NSFieldEditor under the hood, you can check currentEditor if it is the firstResponder
NSTextField
NSFieldEditor
currentEditor
firstResponder
extension NSTextField { var isFirstResponder: Bool { currentEditor() == window?.firstResponder } }
NSTextField
usesNSFieldEditor
under the hood, you can checkcurrentEditor
if it is thefirstResponder