Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Macos 确定击键事件处理程序中的目标窗口_Macos_Event Handling_Keyboard - Fatal编程技术网

Macos 确定击键事件处理程序中的目标窗口

Macos 确定击键事件处理程序中的目标窗口,macos,event-handling,keyboard,Macos,Event Handling,Keyboard,已经提出了几种击键通知方法。在10.6中,通过添加GlobalMonitorForeventsMatachingMask,提出了全局事件监视器的概念。在早期版本中,有Carbon事件管理器和GetEventMonitorTarget。还有CoreGraphics事件点击,如CGEventTapCreate 这些想法都来自上帝对这个问题的回答 在任何或所有这些技术中,是否可以在事件处理程序处确定哪个窗口是击键的目标

已经提出了几种击键通知方法。在10.6中,通过添加GlobalMonitorForeventsMatachingMask,提出了全局事件监视器的概念。在早期版本中,有Carbon事件管理器和GetEventMonitorTarget。还有CoreGraphics事件点击,如CGEventTapCreate

这些想法都来自上帝对这个问题的回答

在任何或所有这些技术中,是否可以在事件处理程序处确定哪个窗口是击键的目标