0

I have a macOS application where I have text fields and a table view. I have added a local monitor for NSEvent using

[NSEvent addLocalMonitorForEventsMatchingMask:NSEventMaskKeyDown handler:^NSEvent *(NSEvent *event)]

method so that I can special handle the "delete" key press. I however want to handle it only when the event is on the NSTableView and not on the textfields. In the handler for the local monitor, how do I check who the first responder is?

user3570727
  • 10,053
  • 4
  • 17
  • 24

0 Answers0