def __ungrabAllHotkeys(self):
c = self.app.configManager<EOL>hotkeys = c.hotKeys + c.hotKeyFolders<EOL>for item in c.globalHotkeys:<EOL><INDENT>if item.enabled:<EOL><INDENT>self.__ungrabHotkey(item.hotKey, item.modifiers, self.rootWindow)<EOL>if self.__needsMutterWorkaround(item):<EOL><INDENT>self.__ungrabRecurse(item, self.rootWindow, False)<EOL><DEDENT><DEDENT><DEDENT>for item in hotkeys:<EOL><INDENT>if item.get_applicable_regex() is None:<EOL><INDENT>self.__ungrabHotkey(item.hotKey, item.modifiers, self.rootWindow)<EOL>if self.__needsMutterWorkaround(item):<EOL><INDENT>self.__ungrabRecurse(item, self.rootWindow, False)<EOL><DEDENT><DEDENT><DEDENT>self.__recurseTreeUngrab(self.rootWindow, hotkeys)<EOL>
Ungrab all hotkeys in preparation for keymap change