code: def grab_hotkey(self, item):
          
          if item.get_applicable_regex() is None:
              self.__enqueue(self.__grabHotkey, item.hotKey, item.modifiers, self.rootWindow)
              if self.__needsMutterWorkaround(item):
                  self.__enqueue(self.__grabRecurse, item, self.rootWindow, False)
          else:
              self.__enqueue(self.__grabRecurse, item, self.rootWindow)
docs: Grab a hotkey.
  
          If the hotkey has no filter regex, it is global and is grabbed recursively from the root window
          If it has a filter regex, iterate over all children of the root and grab from matching windows